-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-workspace-inheritanceArea: workspace inheritance RFC 2906Area: workspace inheritance RFC 2906C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.Z-bindepsNightly: binary artifact dependenciesNightly: binary artifact dependencies
Description
Problem
Unstable feature artifact dependencies introduces several new fields on DetailedTomlDependency
cargo/src/cargo/util/toml/mod.rs
Lines 390 to 395 in e0910d8
/// One or more of `bin`, `cdylib`, `staticlib`, `bin:<name>`. | |
artifact: Option<StringOrVec>, | |
/// If set, the artifact should also be a dependency | |
lib: Option<bool>, | |
/// A platform name, like `x86_64-apple-darwin` | |
target: Option<String>, |
It would be nice to support them in workspace inheritance.
Proposed Solution
After #11565 gets merged, add those fields here.
cargo/src/cargo/util/toml/mod.rs
Lines 1056 to 1065 in 712b327
#[derive(Deserialize, Serialize, Clone, Debug)] | |
#[serde(rename_all = "kebab-case")] | |
pub struct TomlWorkspaceDependency { | |
workspace: bool, | |
features: Option<Vec<String>>, | |
default_features: Option<bool>, | |
#[serde(rename = "default_features")] | |
default_features2: Option<bool>, | |
optional: Option<bool>, | |
} |
Notes
No response
Metadata
Metadata
Assignees
Labels
A-workspace-inheritanceArea: workspace inheritance RFC 2906Area: workspace inheritance RFC 2906C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.Z-bindepsNightly: binary artifact dependenciesNightly: binary artifact dependencies