Skip to content

Commit d9cdb98

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 serde_json'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 331511d commit d9cdb98

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
@@ -31,6 +31,9 @@ trybuild = { version = "1.0.49", features = ["diff"] }
3131
[workspace]
3232
members = ["tests/crate"]
3333

34+
[lib]
35+
doc-scrape-examples = false
36+
3437
[package.metadata.docs.rs]
3538
features = ["raw_value", "unbounded_depth"]
3639
targets = ["x86_64-unknown-linux-gnu"]

0 commit comments

Comments
 (0)