Skip to content

Commit f6685c3

Browse files
committed
Document CARGO_PRINT_RUN
1 parent 68613b9 commit f6685c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/doc/environment-variables.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ configuration values, as described in [that documentation][config-env]
2828

2929
[config-env]: config.html#environment-variables
3030

31+
There are special environmental variables which are not read from `.cargo/config`:
32+
33+
* `CARGO_PRINT_RUN` - If set, Cargo print information about binaries it is about to
34+
run during `cargo test` and `cargo run`, without actually executing the binaries.
35+
This is intended for integration with tools wrapping Cargo and IDEs.
36+
37+
3138
# Environment variables Cargo sets for crates
3239

3340
Cargo exposes these environment variables to your crate when it is compiled.

0 commit comments

Comments
 (0)