Cargo home
CARGO_HOME- Default:
${HOME}/.cargo - Cargo home directory used by Rust tooling and Kopia cache restore.
Kopia cargo cache
Set KOPIA_BUCKET to enable Kopia-backed cargo cache restore and snapshot. The
system phase installs the kopia package when this is set. The home phase
connects to the repository, restores the cache, and snapshots it again after
tool installation.
KOPIA_BUCKET- S3 bucket name.
KOPIA_CREATE- Default:
0 - Set to
1to create the Kopia repository before connecting. KOPIA_ENDPOINT- S3-compatible endpoint.
KOPIA_REGION- S3 region.
AWS_ACCESS_KEY_ID- Access key passed to Kopia.
AWS_SECRET_ACCESS_KEY- Secret key passed to Kopia.
`sccache`
Set SCCACHE_BUCKET to install and configure sccache for Rust builds.
SCCACHE_BUCKET- Enables
sccachesetup. SCCACHE_WEBDAV_ENDPOINT- Optional WebDAV endpoint for
sccache. SCCACHE_VERSION- Version of
sccacheto install.