mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 12:56:48 +00:00
Fix --no-default-features
This commit is contained in:
parent
e040dda7a4
commit
2f40d13120
@ -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()
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user