Skip to content

Commit 6b9ee3d

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 proc-macro2'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 a83ad60 commit 6b9ee3d

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
@@ -37,6 +37,9 @@ span-locations = []
3737
# This feature no longer means anything.
3838
nightly = []
3939

40+
[lib]
41+
doc-scrape-examples = false
42+
4043
[workspace]
4144
members = ["benches/bench-libproc-macro", "tests/ui"]
4245

0 commit comments

Comments
 (0)