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
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -334,11 +334,15 @@ let out_dir = env::var("OUT_DIR").unwrap();
334
334
*`RUSTC`, `RUSTDOC` — the compiler and documentation generator that Cargo has
335
335
resolved to use, passed to the build script so it might
336
336
use it as well.
337
+
*`CARGO_RUSTC_WRAPPER` — the `rustc` wrapper, if any, that Cargo is using.
338
+
See [`build.rustc-wrapper`].
337
339
*`RUSTC_LINKER` — The path to the linker binary that Cargo has resolved to use
338
340
for the current target, if specified. The linker can be
339
341
changed by editing `.cargo/config.toml`; see the documentation
340
342
about [cargo configuration][cargo-config] for more
341
343
information.
344
+
*`CARGO_RUSTFLAGS` — the `RUSTFLAGS` that Cargo invokes `rustc` with.
345
+
See [`build.rustflags`].
342
346
*`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