@@ -85,6 +85,7 @@ to any Rust tools that cargo ends up calling (like `rustc` or
85
85
Cargo _ or_ Rust features can be used.
86
86
87
87
### extra-link-arg
88
+ * Tracking Issue: [ #9426 ] ( https://github.com/rust-lang/cargo/issues/9426 )
88
89
* Original Pull Request: [ #7811 ] ( https://github.com/rust-lang/cargo/pull/7811 )
89
90
90
91
The ` -Z extra-link-arg ` flag makes the following two instructions available
@@ -138,7 +139,7 @@ invocations of nightly cargo. (the config flag is ignored by stable)
138
139
139
140
### avoid-dev-deps
140
141
* Original Issue: [ #4988 ] ( https://github.com/rust-lang/cargo/issues/4988 )
141
- * Stabilization Issue: [ #5133 ] ( https://github.com/rust-lang/cargo/issues/5133 )
142
+ * Tracking Issue: [ #5133 ] ( https://github.com/rust-lang/cargo/issues/5133 )
142
143
143
144
When running commands such as ` cargo install ` or ` cargo build ` , Cargo
144
145
currently requires dev-dependencies to be downloaded, even if they are not
@@ -569,6 +570,8 @@ itself, which has implicit dependencies on the standard library that would
569
570
otherwise be untracked for change-detection.
570
571
571
572
### panic-abort-tests
573
+ * Tracking Issue: [ #67650 ] ( https://github.com/rust-lang/rust/issues/67650 )
574
+ * Original Pull Request: [ #7460 ] ( https://github.com/rust-lang/cargo/pull/7460 )
572
575
573
576
The ` -Z panic-abort-tests ` flag will enable nightly support to compile test
574
577
harness crates with ` -Cpanic=abort ` . Without this flag Cargo will compile tests,
@@ -839,6 +842,9 @@ The default value is `"remote"`.
839
842
The value may also take a URL for a custom location.
840
843
841
844
### terminal-width
845
+
846
+ * Tracking Issue: [ #84673 ] ( https://github.com/rust-lang/rust/issues/84673 )
847
+
842
848
This feature provides a new flag, ` -Z terminal-width ` , which is used to pass
843
849
a terminal width to ` rustc ` so that error messages containing long lines
844
850
can be intelligently truncated.
@@ -896,6 +902,9 @@ dependency. However, unlike the normal `serde/std` syntax, it will not enable
896
902
the optional dependency ` serde ` unless something else has included it.
897
903
898
904
### per-package-target
905
+ * Tracking Issue: [ #9406 ] ( https://github.com/rust-lang/cargo/pull/9406 )
906
+ * Original Pull Request: [ #9030 ] ( https://github.com/rust-lang/cargo/pull/9030 )
907
+ * Original Issue: [ #7004 ] ( https://github.com/rust-lang/cargo/pull/7004 )
899
908
900
909
The ` per-package-target ` feature adds two keys to the manifest:
901
910
` package.default-target ` and ` package.forced-target ` . The first makes
@@ -1212,6 +1221,23 @@ cargo +nightly -Zunstable-options config get build.rustflags
1212
1221
If no config value is included, it will display all config values. See the
1213
1222
` --help ` output for more options available.
1214
1223
1224
+ ### ` doctest-in-workspace `
1225
+
1226
+ * Tracking Issue: [ #9427 ] ( https://github.com/rust-lang/cargo/issues/9427 )
1227
+
1228
+ The ` -Z doctest-in-workspace ` flag changes the behavior of the current working
1229
+ directory used when running doctests. Historically, Cargo has run `rustdoc
1230
+ --test` relative to the root of the package, with paths relative from that
1231
+ root. However, this is inconsistent with how ` rustc ` and ` rustdoc ` are
1232
+ normally run in a workspace, where they are run relative to the workspace
1233
+ root. This inconsistency causes problems in various ways, such as when passing
1234
+ RUSTDOCFLAGS with relative paths, or dealing with diagnostic output.
1235
+
1236
+ The ` -Z doctest-in-workspace ` flag causes cargo to switch to running ` rustdoc `
1237
+ from the root of the workspace. It also passes the ` --test-run-directory ` to
1238
+ ` rustdoc ` so that when * running* the tests, they are run from the root of the
1239
+ package. This preserves backwards compatibility and is consistent with how
1240
+ normal unittests are run.
1215
1241
1216
1242
<script >
1217
1243
(function () {
0 commit comments