Skip to content

Commit b0337d0

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 quote'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 2386c5a commit b0337d0

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 @@ default = ["proc-macro"]
2525
# libproc_macro in the rustc compiler.
2626
proc-macro = ["proc-macro2/proc-macro"]
2727

28+
[lib]
29+
doc-scrape-examples = false
30+
2831
[workspace]
2932
members = ["benches"]
3033

0 commit comments

Comments
 (0)