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 unsafe-libyaml'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:15 -08:00
parent b47a144ecd
commit 9bcfdc7997
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -16,5 +16,8 @@ rust-version = "1.56"
pretty_assertions = "1.0"
unsafe-libyaml-test-suite = { path = "tests/data" }
[lib]
doc-scrape-examples = false
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]