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
@@ -334,16 +334,23 @@ 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
+
*`RUSTC_WRAPPER` — the `rustc` wrapper, if any, that Cargo is using.
338
+
See [`build.rustc-wrapper`].
339
339
*`RUSTC_LINKER` — The path to the linker binary that Cargo has resolved to use
340
340
for the current target, if specified. The linker can be
341
341
changed by editing `.cargo/config.toml`; see the documentation
342
342
about [cargo configuration][cargo-config] for more
343
343
information.
344
-
*`CARGO_RUSTFLAGS` — the `RUSTFLAGS` that Cargo invokes `rustc` with.
345
-
See [`build.rustflags`].
344
+
*`RUSTFLAGS` — the `RUSTFLAGS` that Cargo invokes `rustc` with.
345
+
See [`build.rustflags`].
346
346
*`CARGO_PKG_<var>` - The package information variables, with the same names and values as are [provided during crate building][variables set for crates].
347
+
*`CARGO_VERSION` - The version of cargo used to invoke the build
348
+
script. Its constituent parts are also available as
349
+
`CARGO_VERSION_MAJOR`, `_MINOR`, and `_PATCH`.
350
+
*`RUSTC_VERSION` - The version of rustc used by the cargo that invokes
0 commit comments