mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
refactor(toml): Group workspace inheritance logic
This commit is contained in:
parent
e30ddc4f94
commit
dd8f8dc645
@ -519,18 +519,17 @@ pub fn to_real_manifest(
|
||||
`[workspace]`, only one can be specified"
|
||||
),
|
||||
};
|
||||
|
||||
let package_name = &package.name;
|
||||
if package_name.contains(':') {
|
||||
features.require(Feature::open_namespaces())?;
|
||||
}
|
||||
|
||||
let inherit_cell: LazyCell<InheritableFields> = LazyCell::new();
|
||||
let inherit = || {
|
||||
inherit_cell
|
||||
.try_borrow_with(|| load_inheritable_fields(gctx, manifest_file, &workspace_config))
|
||||
};
|
||||
|
||||
let package_name = &package.name;
|
||||
if package_name.contains(':') {
|
||||
features.require(Feature::open_namespaces())?;
|
||||
}
|
||||
|
||||
let version = package
|
||||
.version
|
||||
.clone()
|
||||
|
Loading…
x
Reference in New Issue
Block a user