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: doc/book/src/reference/environment-variables.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ See the [configuration chapter][config-env] for more details.
88
88
In summary, the supported environment variables are:
89
89
90
90
*`CARGO_ALIAS_<name>` --- Command aliases, see [`alias`].
91
+
*`CARGO_BUILD_WARNINGS` --- The effective level of lint warnings for local packages, see [`build.warnings`].
91
92
*`CARGO_BUILD_JOBS` --- Number of parallel jobs, see [`build.jobs`].
92
93
*`CARGO_BUILD_RUSTC` --- The `rustc` executable, see [`build.rustc`].
93
94
*`CARGO_BUILD_RUSTC_WRAPPER` --- The `rustc` wrapper, see [`build.rustc-wrapper`].
@@ -102,6 +103,7 @@ In summary, the supported environment variables are:
102
103
*`CARGO_BUILD_DEP_INFO_BASEDIR` --- Dep-info relative directory, see [`build.dep-info-basedir`].
103
104
*`CARGO_CACHE_AUTO_CLEAN_FREQUENCY` --- Configures how often automatic cache cleaning runs, see [`cache.auto-clean-frequency`].
104
105
*`CARGO_CARGO_NEW_VCS` --- The default source control system with [`cargo new`], see [`cargo-new.vcs`].
106
+
*`CARGO_CREDENTIAL_ALIAS_<name>` --- Credential provider aliases, see [`credential-alias`].
105
107
*`CARGO_FUTURE_INCOMPAT_REPORT_FREQUENCY` --- How often we should generate a future incompat report notification, see [`future-incompat-report.frequency`].
106
108
*`CARGO_HTTP_DEBUG` --- Enables HTTP debugging, see [`http.debug`].
107
109
*`CARGO_HTTP_PROXY` --- Enables HTTP proxy, see [`http.proxy`].
@@ -132,18 +134,25 @@ In summary, the supported environment variables are:
132
134
*`CARGO_REGISTRIES_<name>_CREDENTIAL_PROVIDER` --- Credential provider for a registry, see [`registries.<name>.credential-provider`].
133
135
*`CARGO_REGISTRIES_<name>_INDEX` --- URL of a registry index, see [`registries.<name>.index`].
134
136
*`CARGO_REGISTRIES_<name>_TOKEN` --- Authentication token of a registry, see [`registries.<name>.token`].
137
+
*`CARGO_REGISTRIES_CRATES_IO_PROTOCOL` --- The protocol used to access [crates.io], see [`registries.crates-io.protocol`].
135
138
*`CARGO_REGISTRY_CREDENTIAL_PROVIDER` --- Credential provider for [crates.io], see [`registry.credential-provider`].
136
139
*`CARGO_REGISTRY_DEFAULT` --- Default registry for the `--registry` flag, see [`registry.default`].
137
140
*`CARGO_REGISTRY_GLOBAL_CREDENTIAL_PROVIDERS` --- Credential providers for registries that do not have a specific provider defined. See [`registry.global-credential-providers`].
138
141
*`CARGO_REGISTRY_TOKEN` --- Authentication token for [crates.io], see [`registry.token`].
142
+
*`CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS` --- How incompatible Rust versions are treated during dependency resolution, see [`resolver.incompatible-rust-versions`].
143
+
*`CARGO_RESOLVER_LOCKFILE_PATH` --- The path to the lockfile, see [`resolver.lockfile-path`].
139
144
*`CARGO_TARGET_<triple>_LINKER` --- The linker to use, see [`target.<triple>.linker`]. The triple must be [converted to uppercase and underscores](config.md#environment-variables).
140
145
*`CARGO_TARGET_<triple>_RUNNER` --- The executable runner, see [`target.<triple>.runner`].
141
146
*`CARGO_TARGET_<triple>_RUSTFLAGS` --- Extra `rustc` flags for a target, see [`target.<triple>.rustflags`].
147
+
*`CARGO_TARGET_<triple>_RUSTDOCFLAGS` --- Extra `rustdoc` flags for a target, see [`target.<triple>.rustdocflags`].
142
148
*`CARGO_TERM_QUIET` --- Quiet mode, see [`term.quiet`].
143
149
*`CARGO_TERM_VERBOSE` --- The default terminal verbosity, see [`term.verbose`].
144
150
*`CARGO_TERM_COLOR` --- The default color mode, see [`term.color`].
151
+
*`CARGO_TERM_HYPERLINKS` --- Whether hyperlinks are used in the terminal, see [`term.hyperlinks`].
152
+
*`CARGO_TERM_UNICODE` --- Whether terminal output can use non-ASCII Unicode characters, see [`term.unicode`].
145
153
*`CARGO_TERM_PROGRESS_WHEN` --- The default progress bar showing mode, see [`term.progress.when`].
146
154
*`CARGO_TERM_PROGRESS_WIDTH` --- The default progress bar width, see [`term.progress.width`].
155
+
*`CARGO_TERM_PROGRESS_TERM_INTEGRATION` --- Whether progress is reported to the terminal emulator, see [`term.progress.term-integration`].
147
156
148
157
[`cargo doc`]: ../commands/cargo-doc.md
149
158
[`cargo install`]: ../commands/cargo-install.md
@@ -154,6 +163,7 @@ In summary, the supported environment variables are:
0 commit comments