Skip to content

Commit 1b82e1b

Browse files
committed
Added build-dir unstable feature flag
1 parent 4ce639d commit 1b82e1b

File tree

2 files changed

+41
-37
lines changed

2 files changed

+41
-37
lines changed

src/cargo/core/features.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ unstable_cli_options!(
759759
avoid_dev_deps: bool = ("Avoid installing dev-dependencies if possible"),
760760
binary_dep_depinfo: bool = ("Track changes to dependency artifacts"),
761761
bindeps: bool = ("Allow Cargo packages to depend on bin, cdylib, and staticlib crates, and use the artifacts built by those crates"),
762+
build_dir: bool = ("Enable the `build.build-dir` option in .cargo/config.toml file"),
762763
#[serde(deserialize_with = "deserialize_comma_separated_list")]
763764
build_std: Option<Vec<String>> = ("Enable Cargo to compile the standard library itself as part of a crate graph compilation"),
764765
#[serde(deserialize_with = "deserialize_comma_separated_list")]
@@ -1264,6 +1265,7 @@ impl CliUnstable {
12641265
"avoid-dev-deps" => self.avoid_dev_deps = parse_empty(k, v)?,
12651266
"binary-dep-depinfo" => self.binary_dep_depinfo = parse_empty(k, v)?,
12661267
"bindeps" => self.bindeps = parse_empty(k, v)?,
1268+
"build-dir" => self.build_dir = parse_empty(k, v)?,
12671269
"build-std" => self.build_std = Some(parse_list(v)),
12681270
"build-std-features" => self.build_std_features = Some(parse_list(v)),
12691271
"cargo-lints" => self.cargo_lints = parse_empty(k, v)?,

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

Lines changed: 39 additions & 37 deletions
Loading

0 commit comments

Comments
 (0)