Skip to content

Commit 1ab5f42

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 precise'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 093fa55 commit 1ab5f42

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
@@ -15,5 +15,8 @@ rust-version = "1.31"
1515
num-bigint = "0.4"
1616
num-traits = "0.2"
1717

18+
[lib]
19+
doc-scrape-examples = false
20+
1821
[package.metadata.docs.rs]
1922
targets = ["x86_64-unknown-linux-gnu"]

0 commit comments

Comments
 (0)