Skip to content

Commit

Permalink
Fake resolve roots don't forcibly enable default features (bazelbuild…
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored Aug 13, 2024
1 parent 533106d commit 0e6eec5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crate_universe/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
});

Expand Down

0 comments on commit 0e6eec5

Please sign in to comment.