Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Opt out -Zrustdoc-scrape-examples on docs.rs
Browse files Browse the repository at this point in the history
I'd like a chance to audit all the code that rustdoc is inserting into
the docs. Currently I am skeptical that showing serde_yaml'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.
  • Loading branch information
dtolnay committed Dec 18, 2022
1 parent 2d0b7bd commit 80ad630
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ anyhow = "1.0"
indoc = "1.0"
serde_derive = "1.0"

[lib]
doc-scrape-examples = false

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

0 comments on commit 80ad630

Please sign in to comment.