From 4fbf256826dc4b7726c89644242aa30746ae3027 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 2 Jan 2023 21:40:14 -0800 Subject: [PATCH] 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_ignored'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. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index cc6688a..9d69487 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,5 +17,8 @@ serde = { version = "1.0", default-features = false, features = ["alloc"] } serde_derive = "1.0" serde_json = "1.0" +[lib] +doc-scrape-examples = false + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"]