You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/src/reference/environment-variables.md
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,11 @@ with them:
9
9
You can override these environment variables to change Cargo's behavior on your
10
10
system:
11
11
12
+
*`CARGO_LOG` - Cargo uses the [`env_logger`] crate to display debug log messages.
13
+
The `CARGO_LOG` environment variable can be set to enable debug logging,
14
+
with a value such as `trace`, `debug`, or `warn`.
15
+
Usually it is only used during debugging. For more details refer to the
16
+
[Debug logging].
12
17
*`CARGO_HOME` — Cargo maintains a local cache of the registry index and of
13
18
git checkouts of crates. By default these are stored under `$HOME/.cargo`
14
19
(`%USERPROFILE%\.cargo` on Windows), but this variable overrides the
@@ -39,17 +44,17 @@ system:
39
44
invocations that Cargo performs. In contrast with [`cargo rustdoc`], this is
40
45
useful for passing a flag to *all*`rustdoc` instances. See
41
46
[`build.rustdocflags`] for some more ways to set flags. This string is
42
-
split by whitespace; for a more robust encoding of multiple arguments,
47
+
split by whitespace; for a more robust encoding of multiple arguments,
43
48
see `CARGO_ENCODED_RUSTDOCFLAGS`.
44
-
*`CARGO_ENCODED_RUSTDOCFLAGS` - A list of custom flags separated by `0x1f`
49
+
*`CARGO_ENCODED_RUSTDOCFLAGS` - A list of custom flags separated by `0x1f`
45
50
(ASCII Unit Separator) to pass to all `rustdoc` invocations that Cargo performs.
46
51
*`RUSTFLAGS` — A space-separated list of custom flags to pass to all compiler
47
52
invocations that Cargo performs. In contrast with [`cargo rustc`], this is
48
53
useful for passing a flag to *all* compiler instances. See
49
54
[`build.rustflags`] for some more ways to set flags. This string is
50
-
split by whitespace; for a more robust encoding of multiple arguments,
55
+
split by whitespace; for a more robust encoding of multiple arguments,
51
56
see `CARGO_ENCODED_RUSTFLAGS`.
52
-
*`CARGO_ENCODED_RUSTFLAGS` - A list of custom flags separated by `0x1f`
57
+
*`CARGO_ENCODED_RUSTFLAGS` - A list of custom flags separated by `0x1f`
53
58
(ASCII Unit Separator) to pass to all compiler invocations that Cargo performs.
54
59
*`CARGO_INCREMENTAL` — If this is set to 1 then Cargo will force [incremental
55
60
compilation] to be enabled for the current compilation, and when set to 0 it
@@ -369,6 +374,8 @@ let out_dir = env::var("OUT_DIR").unwrap();
369
374
the environment; scripts should use `CARGO_ENCODED_RUSTFLAGS` instead.
370
375
*`CARGO_PKG_<var>` - The package information variables, with the same names and values as are [provided during crate building][variables set for crates].
0 commit comments