diff --git a/osdk/src/base_crate/mod.rs b/osdk/src/base_crate/mod.rs index 388a7ed7..2d44d21a 100644 --- a/osdk/src/base_crate/mod.rs +++ b/osdk/src/base_crate/mod.rs @@ -216,8 +216,12 @@ fn add_manifest_dependency( let dependencies = manifest.get_mut("dependencies").unwrap(); + // We disable default features when depending on the target crate, and add + // all the default features as the default features of the base crate, to + // allow controls from the users. + // See `add_feature_entries` for more details. let target_dep = toml::Table::from_str(&format!( - "{} = {{ path = \"{}\" }}", + "{} = {{ path = \"{}\", default-features = false }}", crate_name, crate_path.as_ref().display() ))