Design discussion: JSON output for rustdoc

This potential use case just popped up so I’ll share:

I’d like to be able to scrape code fragments from crate documentation; specifically, code fragments marked with a specific language other than Rust. My tool can then take those fragments and compile them in a similar check as to rustdoc tests, or in my case, collect grammar snippets into one canonical grammar file.

1 Like