From 6b6a72163ec8475a6f1082a96ce3540fbf8cc383 Mon Sep 17 00:00:00 2001 From: Jynn Nelson Date: Fri, 26 Sep 2025 21:52:24 -0700 Subject: [PATCH] Pass `--no-deps` to cargo metadata We never use anything other than the workspace members and the `target` field. Don't collect unnecessary info. As a side effect, this causes cargo-binutils to work even with very old versions of Cargo that use `resolver = "1"` by default. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index fae4719..55eee82 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -281,6 +281,7 @@ To see all the flags the proxied tool accepts run `cargo-{} -- --help`.{}", pub fn run(tool: Tool, matches: ArgMatches) -> Result { let mut metadata_command = MetadataCommand::new(); + metadata_command.no_deps(); if tool.needs_build() { if let Some(features) = matches.get_many::("features") { metadata_command.features(CargoOpt::SomeFeatures(