From 5bd582c9654c7eba3d95e87256fc2c929c1745e2 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 2 Jan 2023 21:40:13 -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 itoa'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 a24b8e4..011f390 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,8 @@ rust-version = "1.36" [dependencies] no-panic = { version = "0.1", optional = true } +[lib] +doc-scrape-examples = false + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"]