Skip to content

Commit 31e1f1f

Browse files
committed
Auto merge of #8767 - MonliH:master, r=ehuss
Document RUSTFMT environment variable This PR documents the `RUSTFMT` enviorment variable, as specified in [rust-lang/rustfmt/4426](rust-lang/rustfmt#4426) and [rust-lang/rustfmt/4419](rust-lang/rustfmt#4419).
2 parents 90594df + f6abaa6 commit 31e1f1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/src/reference/environment-variables.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ system:
4949
* `TERM` — If this is set to `dumb`, it disables the progress bar.
5050
* `BROWSER` — The web browser to execute to open documentation with [`cargo
5151
doc`]'s' `--open` flag.
52+
* `RUSTFMT` — Instead of running `rustfmt`,
53+
[`cargo fmt`](https://github.com/rust-lang/rustfmt) will execute this specified
54+
`rustfmt` instance instead.
5255

5356
#### Configuration environment variables
5457

0 commit comments

Comments
 (0)