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 ryu'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:14 -08:00
parent e742096a63
commit da29cf86d5
+3
View File
@@ -27,5 +27,8 @@ num_cpus = "1.8"
rand = "0.8"
rand_xorshift = "0.3"
[lib]
doc-scrape-examples = false
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]