Skip to content

Commit c0a87d0

Browse files
committed
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 anyhow'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.
1 parent 1cc707b commit c0a87d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ syn = { version = "1.0", features = ["full"] }
2525
thiserror = "1.0"
2626
trybuild = { version = "1.0.66", features = ["diff"] }
2727

28+
[lib]
29+
doc-scrape-examples = false
30+
2831
[package.metadata.docs.rs]
2932
targets = ["x86_64-unknown-linux-gnu"]
3033
rustdoc-args = ["--cfg", "doc_cfg"]

0 commit comments

Comments
 (0)