Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass cargo configuration flags to docker.
Ensures the following flags are passed to docker: - BROWSER - CARGO_BUILD_DEP_INFO_BASEDIR - CARGO_BUILD_INCREMENTAL - CARGO_BUILD_JOBS - CARGO_BUILD_RUSTDOCFLAGS - CARGO_BUILD_RUSTFLAGS - CARGO_CACHE_RUSTC_INFO - CARGO_CACHE_RUSTC_INFO - CARGO_FUTURE_INCOMPAT_REPORT_FREQUENCY - CARGO_HTTP_CAINFO - CARGO_HTTP_CHECK_REVOKE - CARGO_HTTP_DEBUG - CARGO_HTTP_LOW_SPEED_LIMIT - CARGO_HTTP_MULTIPLEXING - CARGO_HTTP_PROXY - CARGO_HTTP_SSL_VERSION - CARGO_HTTP_TIMEOUT - CARGO_HTTP_USER_AGENT - CARGO_INCREMENTAL - CARGO_INCREMENTAL - CARGO_NET_GIT_FETCH_WITH_CLI - CARGO_NET_OFFLINE - CARGO_NET_RETRY - HTTP_TIMEOUT - HTTPS_PROXY - RUSTDOCFLAGS - RUSTFLAGS - TERM These are always correct, since these configure how `cargo` behavior is supposed to work, but don't rely on any paths on the host filesystem. We also have some future-proofing, since we accept anything starting with `CARGO_` except the following variables: It also ensures the following overridden environment variables are not passed: - CARGO_HOME - CARGO_TARGET_DIR - CARGO_BUILD_TARGET_DIR And it ensures the following not-yet-supported environment variables are not passed: - CARGO_BUILD_RUSTC - CARGO_BUILD_RUSTC_WRAPPER - CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER - CARGO_BUILD_RUSTDOC
- Loading branch information