Skip to content

Commit 8e53ef3

Browse files
committed
feat(unstable): Added -Zbuild-dir-new-layout unstable feature
1 parent e04e0b6 commit 8e53ef3

File tree

2 files changed

+45
-41
lines changed

2 files changed

+45
-41
lines changed

src/cargo/core/features.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ unstable_cli_options!(
845845
binary_dep_depinfo: bool = ("Track changes to dependency artifacts"),
846846
bindeps: bool = ("Allow Cargo packages to depend on bin, cdylib, and staticlib crates, and use the artifacts built by those crates"),
847847
build_analysis: bool = ("Record and persist build metrics across runs, with commands to query past builds."),
848+
build_dir_new_layout: bool = ("Use the new build-dir filesystem layout"),
848849
#[serde(deserialize_with = "deserialize_comma_separated_list")]
849850
build_std: Option<Vec<String>> = ("Enable Cargo to compile the standard library itself as part of a crate graph compilation"),
850851
#[serde(deserialize_with = "deserialize_comma_separated_list")]
@@ -1365,6 +1366,7 @@ impl CliUnstable {
13651366
"binary-dep-depinfo" => self.binary_dep_depinfo = parse_empty(k, v)?,
13661367
"bindeps" => self.bindeps = parse_empty(k, v)?,
13671368
"build-analysis" => self.build_analysis = parse_empty(k, v)?,
1369+
"build-dir-new-layout" => self.build_dir_new_layout = parse_empty(k, v)?,
13681370
"build-std" => self.build_std = Some(parse_list(v)),
13691371
"build-std-features" => self.build_std_features = Some(parse_list(v)),
13701372
"cargo-lints" => self.cargo_lints = parse_empty(k, v)?,

tests/testsuite/cargo/z_help/stdout.term.svg

Lines changed: 43 additions & 41 deletions
Loading

0 commit comments

Comments
 (0)