From da29cf86d5b2bdf9ac00cbd20370df2152bdd918 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 ryu'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 2836539..ac93176 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,5 +27,8 @@ num_cpus = "1.8" rand = "0.8" rand_xorshift = "0.3" +[lib] +doc-scrape-examples = false + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"]