diff --git a/src/source_distribution.rs b/src/source_distribution.rs index 7842b2651..bfb0a7fc2 100644 --- a/src/source_distribution.rs +++ b/src/source_distribution.rs @@ -68,7 +68,7 @@ fn rewrite_cargo_toml( if let Some(table) = data.get_mut(dep_category).and_then(|x| x.as_table_mut()) { let workspace_deps = workspace_manifest .get("workspace") - .and_then(|x| x.get(dep_category)) + .and_then(|x| x.get("dependencies")) .and_then(|x| x.as_table_like()); let dep_names: Vec<_> = table.iter().map(|(key, _)| key.to_string()).collect(); for dep_name in dep_names { diff --git a/test-crates/workspace-inheritance/python/Cargo.toml b/test-crates/workspace-inheritance/python/Cargo.toml index 396533358..6ac866903 100644 --- a/test-crates/workspace-inheritance/python/Cargo.toml +++ b/test-crates/workspace-inheritance/python/Cargo.toml @@ -17,6 +17,12 @@ workspace = true optional = true features = ["extra_traits"] +[build-dependencies] +cfg-if.workspace = true + +[dev-dependencies] +cfg-if.workspace = true + [dependencies.cfg-if] workspace = true optional = true