From 5239c6c129693a9cd25c8c26f3ad90fe81ad1131 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Tue, 13 Aug 2024 12:37:37 +0100 Subject: [PATCH] Fake resolve roots don't forcibly enable default features --- crate_universe/src/metadata.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crate_universe/src/metadata.rs b/crate_universe/src/metadata.rs index ce47b4adfd..5daaa3127a 100644 --- a/crate_universe/src/metadata.rs +++ b/crate_universe/src/metadata.rs @@ -721,6 +721,8 @@ impl TreeResolver { if let Some(source) = pm.source.as_ref() { let mut detail = DependencyDetailWithOrd(cargo_toml::DependencyDetail { package: Some(pm.name.clone()), + // Don't forcibly enable default features - if some other dependency enables them, they will still be enabled. + default_features: false, ..cargo_toml::DependencyDetail::default() });