Opt out -Zrustdoc-scrape-examples on docs.rs

I'd like a chance to audit all the code that rustdoc is inserting into
the docs. Currently I am skeptical that showing itoa's internal usages
of APIs is a net benefit to the public documentation. I am also
skeptical that quite so many examples are needed, and that they should
be featured so prominently in comparison to handwritten docs. Lastly I
wish there were a way to turn this behavior off on a more granular
basis.
This commit is contained in:
David Tolnay 2023-01-02 21:40:13 -08:00
parent a77f3c911f
commit 5bd582c965
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 3 additions and 0 deletions

View File

@ -15,5 +15,8 @@ rust-version = "1.36"
[dependencies]
no-panic = { version = "0.1", optional = true }
[lib]
doc-scrape-examples = false
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]