Skip to content

Commit 8137102

Browse files
authored
Adapt to rename of "out_dir" flag to "artifact_dir" (#13)
rust-lang/cargo#13809
1 parent 086d747 commit 8137102

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ pub struct Build {
125125
pub all_targets: bool,
126126

127127
/// Copy final artifacts to this directory (unstable)
128-
#[arg(long, value_name = "PATH", help_heading = heading::COMPILATION_OPTIONS)]
129-
pub out_dir: Option<PathBuf>,
128+
#[arg(long, alias = "out-dir", value_name = "PATH", help_heading = heading::COMPILATION_OPTIONS)]
129+
pub artifact_dir: Option<PathBuf>,
130130

131131
/// Output the build plan in JSON (unstable)
132132
#[arg(long, help_heading = heading::COMPILATION_OPTIONS)]
@@ -199,8 +199,8 @@ impl Build {
199199
if self.all_targets {
200200
cmd.arg("--all-targets");
201201
}
202-
if let Some(dir) = self.out_dir.as_ref() {
203-
cmd.arg("--out-dir").arg(dir);
202+
if let Some(dir) = self.artifact_dir.as_ref() {
203+
cmd.arg("--artifact-dir").arg(dir);
204204
}
205205
if self.build_plan {
206206
cmd.arg("--build-plan");

tests/cmd/build.stdout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Compilation Options:
2424
--timings[=<FMTS>...] Timing output formats (unstable) (comma separated): html, json
2525
-r, --release Build artifacts in release mode, with optimizations
2626
--unit-graph Output build graph in JSON (unstable)
27-
--out-dir <PATH> Copy final artifacts to this directory (unstable)
27+
--artifact-dir <PATH> Copy final artifacts to this directory (unstable)
2828
--build-plan Output the build plan in JSON (unstable)
2929

3030
Feature Selection:

0 commit comments

Comments
 (0)