From 131cca6ff10e1795f3186ccda73aa1dacb5efa37 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Thu, 4 Dec 2025 16:50:35 +0000 Subject: [PATCH] cargo-rbmt: add `--no-deps` to `cargo doc` invocations With this change, we need to remove `doc_auto_cfg` from the crates that we actively maintain, but don't need to do it for their dependencies. Fixes #31 --- cargo-rbmt/src/docs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cargo-rbmt/src/docs.rs b/cargo-rbmt/src/docs.rs index 83be63c..af73603 100644 --- a/cargo-rbmt/src/docs.rs +++ b/cargo-rbmt/src/docs.rs @@ -11,7 +11,7 @@ use xshell::Shell; pub fn run(sh: &Shell, packages: &[String]) -> Result<(), Box> { check_toolchain(sh, Toolchain::Stable)?; - let mut cmd = quiet_cmd!(sh, "cargo doc --all-features"); + let mut cmd = quiet_cmd!(sh, "cargo doc --all-features --no-deps"); // Add package filters if specified. for package in packages { @@ -30,7 +30,7 @@ pub fn run(sh: &Shell, packages: &[String]) -> Result<(), Box Result<(), Box> { check_toolchain(sh, Toolchain::Nightly)?; - let mut cmd = quiet_cmd!(sh, "cargo doc --all-features"); + let mut cmd = quiet_cmd!(sh, "cargo doc --all-features --no-deps"); // Add package filters if specified. for package in packages {