Skip to content

Commit 0f80faf

Browse files
committed
add unstable feature docs
1 parent c2be327 commit 0f80faf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/doc/src/reference/unstable.md

+8
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Each new feature described below should explain how to use it.
7878
* Output behavior
7979
* [artifact-dir](#artifact-dir) --- Adds a directory where artifacts are copied to.
8080
* [Different binary name](#different-binary-name) --- Assign a name to the built binary that is separate from the crate name.
81+
* [root-dir](#root-dir) --- Controls the root directory relative to which paths are printed
8182
* Compile behavior
8283
* [mtime-on-use](#mtime-on-use) --- Updates the last-modified timestamp on every dependency every time it is used, to provide a mechanism to delete unused artifacts.
8384
* [doctest-xcompile](#doctest-xcompile) --- Supports running doctests with the `--target` flag.
@@ -236,6 +237,13 @@ This can also be specified in `.cargo/config.toml` files.
236237
artifact-dir = "out"
237238
```
238239

240+
## root-dir
241+
* Original Issue: [#9887](https://github.com/rust-lang/cargo/issues/9887)
242+
* Tracking Issue: None (not currently slated for stabilization)
243+
244+
The `-Zroot-dir` flag sets the root directory relative to which paths are printed.
245+
This affects both diagnostics and paths emitted by the `file!()` macro.
246+
239247
## doctest-xcompile
240248
* Tracking Issue: [#7040](https://github.com/rust-lang/cargo/issues/7040)
241249
* Tracking Rustc Issue: [#64245](https://github.com/rust-lang/rust/issues/64245)

0 commit comments

Comments
 (0)