diff --git a/doc/book/src/reference/environment-variables.md b/doc/book/src/reference/environment-variables.md index df1b180a097..ed130e472e0 100644 --- a/doc/book/src/reference/environment-variables.md +++ b/doc/book/src/reference/environment-variables.md @@ -88,6 +88,7 @@ See the [configuration chapter][config-env] for more details. In summary, the supported environment variables are: * `CARGO_ALIAS_` --- Command aliases, see [`alias`]. +* `CARGO_BUILD_WARNINGS` --- The effective level of lint warnings for local packages, see [`build.warnings`]. * `CARGO_BUILD_JOBS` --- Number of parallel jobs, see [`build.jobs`]. * `CARGO_BUILD_RUSTC` --- The `rustc` executable, see [`build.rustc`]. * `CARGO_BUILD_RUSTC_WRAPPER` --- The `rustc` wrapper, see [`build.rustc-wrapper`]. @@ -102,6 +103,7 @@ In summary, the supported environment variables are: * `CARGO_BUILD_DEP_INFO_BASEDIR` --- Dep-info relative directory, see [`build.dep-info-basedir`]. * `CARGO_CACHE_AUTO_CLEAN_FREQUENCY` --- Configures how often automatic cache cleaning runs, see [`cache.auto-clean-frequency`]. * `CARGO_CARGO_NEW_VCS` --- The default source control system with [`cargo new`], see [`cargo-new.vcs`]. +* `CARGO_CREDENTIAL_ALIAS_` --- Credential provider aliases, see [`credential-alias`]. * `CARGO_FUTURE_INCOMPAT_REPORT_FREQUENCY` --- How often we should generate a future incompat report notification, see [`future-incompat-report.frequency`]. * `CARGO_HTTP_DEBUG` --- Enables HTTP debugging, see [`http.debug`]. * `CARGO_HTTP_PROXY` --- Enables HTTP proxy, see [`http.proxy`]. @@ -132,18 +134,25 @@ In summary, the supported environment variables are: * `CARGO_REGISTRIES__CREDENTIAL_PROVIDER` --- Credential provider for a registry, see [`registries..credential-provider`]. * `CARGO_REGISTRIES__INDEX` --- URL of a registry index, see [`registries..index`]. * `CARGO_REGISTRIES__TOKEN` --- Authentication token of a registry, see [`registries..token`]. +* `CARGO_REGISTRIES_CRATES_IO_PROTOCOL` --- The protocol used to access [crates.io], see [`registries.crates-io.protocol`]. * `CARGO_REGISTRY_CREDENTIAL_PROVIDER` --- Credential provider for [crates.io], see [`registry.credential-provider`]. * `CARGO_REGISTRY_DEFAULT` --- Default registry for the `--registry` flag, see [`registry.default`]. * `CARGO_REGISTRY_GLOBAL_CREDENTIAL_PROVIDERS` --- Credential providers for registries that do not have a specific provider defined. See [`registry.global-credential-providers`]. * `CARGO_REGISTRY_TOKEN` --- Authentication token for [crates.io], see [`registry.token`]. +* `CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS` --- How incompatible Rust versions are treated during dependency resolution, see [`resolver.incompatible-rust-versions`]. +* `CARGO_RESOLVER_LOCKFILE_PATH` --- The path to the lockfile, see [`resolver.lockfile-path`]. * `CARGO_TARGET__LINKER` --- The linker to use, see [`target..linker`]. The triple must be [converted to uppercase and underscores](config.md#environment-variables). * `CARGO_TARGET__RUNNER` --- The executable runner, see [`target..runner`]. * `CARGO_TARGET__RUSTFLAGS` --- Extra `rustc` flags for a target, see [`target..rustflags`]. +* `CARGO_TARGET__RUSTDOCFLAGS` --- Extra `rustdoc` flags for a target, see [`target..rustdocflags`]. * `CARGO_TERM_QUIET` --- Quiet mode, see [`term.quiet`]. * `CARGO_TERM_VERBOSE` --- The default terminal verbosity, see [`term.verbose`]. * `CARGO_TERM_COLOR` --- The default color mode, see [`term.color`]. +* `CARGO_TERM_HYPERLINKS` --- Whether hyperlinks are used in the terminal, see [`term.hyperlinks`]. +* `CARGO_TERM_UNICODE` --- Whether terminal output can use non-ASCII Unicode characters, see [`term.unicode`]. * `CARGO_TERM_PROGRESS_WHEN` --- The default progress bar showing mode, see [`term.progress.when`]. * `CARGO_TERM_PROGRESS_WIDTH` --- The default progress bar width, see [`term.progress.width`]. +* `CARGO_TERM_PROGRESS_TERM_INTEGRATION` --- Whether progress is reported to the terminal emulator, see [`term.progress.term-integration`]. [`cargo doc`]: ../commands/cargo-doc.md [`cargo install`]: ../commands/cargo-install.md @@ -154,6 +163,7 @@ In summary, the supported environment variables are: [crates.io]: https://crates.io/ [incremental compilation]: profiles.md#incremental [`alias`]: config.md#alias +[`build.warnings`]: config.md#buildwarnings [`build.jobs`]: config.md#buildjobs [`build.rustc`]: config.md#buildrustc [`build.rustc-wrapper`]: config.md#buildrustc-wrapper @@ -166,6 +176,7 @@ In summary, the supported environment variables are: [`build.rustdocflags`]: config.md#buildrustdocflags [`build.incremental`]: config.md#buildincremental [`build.dep-info-basedir`]: config.md#builddep-info-basedir +[`credential-alias`]: config.md#credential-alias [`doc.browser`]: config.md#docbrowser [`cache.auto-clean-frequency`]: config.md#cacheauto-clean-frequency [`cargo-new.name`]: config.md#cargo-newname @@ -198,9 +209,12 @@ In summary, the supported environment variables are: [`profile..rpath`]: config.md#profilenamerpath [`profile..split-debuginfo`]: config.md#profilenamesplit-debuginfo [`profile..strip`]: config.md#profilenamestrip +[`resolver.lockfile-path`]: config.md#resolverlockfile-path +[`resolver.incompatible-rust-versions`]: config.md#resolverincompatible-rust-versions [`registries..credential-provider`]: config.md#registriesnamecredential-provider [`registries..index`]: config.md#registriesnameindex [`registries..token`]: config.md#registriesnametoken +[`registries.crates-io.protocol`]: config.md#registriescrates-ioprotocol [`registry.credential-provider`]: config.md#registrycredential-provider [`registry.default`]: config.md#registrydefault [`registry.global-credential-providers`]: config.md#registryglobal-credential-providers @@ -208,11 +222,15 @@ In summary, the supported environment variables are: [`target..linker`]: config.md#targettriplelinker [`target..runner`]: config.md#targettriplerunner [`target..rustflags`]: config.md#targettriplerustflags +[`target..rustdocflags`]: config.md#targettriplerustdocflags [`term.quiet`]: config.md#termquiet [`term.verbose`]: config.md#termverbose [`term.color`]: config.md#termcolor +[`term.hyperlinks`]: config.md#termhyperlinks +[`term.unicode`]: config.md#termunicode [`term.progress.when`]: config.md#termprogresswhen [`term.progress.width`]: config.md#termprogresswidth +[`term.progress.term-integration`]: config.md#termprogressterm-integration ## Environment variables Cargo sets for crates