Skip to content

Commit 57fd101

Browse files
committed
feat(unstable): add -Zbuild-analysis unstable feature
1 parent c204194 commit 57fd101

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
@@ -844,6 +844,7 @@ unstable_cli_options!(
844844
avoid_dev_deps: bool = ("Avoid installing dev-dependencies if possible"),
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"),
847+
build_analysis: bool = ("Record and persist build metrics across runs, with commands to query past builds."),
847848
#[serde(deserialize_with = "deserialize_comma_separated_list")]
848849
build_std: Option<Vec<String>> = ("Enable Cargo to compile the standard library itself as part of a crate graph compilation"),
849850
#[serde(deserialize_with = "deserialize_comma_separated_list")]
@@ -1362,6 +1363,7 @@ impl CliUnstable {
13621363
"avoid-dev-deps" => self.avoid_dev_deps = parse_empty(k, v)?,
13631364
"binary-dep-depinfo" => self.binary_dep_depinfo = parse_empty(k, v)?,
13641365
"bindeps" => self.bindeps = parse_empty(k, v)?,
1366+
"build-analysis" => self.build_analysis = parse_empty(k, v)?,
13651367
"build-std" => self.build_std = Some(parse_list(v)),
13661368
"build-std-features" => self.build_std_features = Some(parse_list(v)),
13671369
"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)