Cache and cloud settings

Updated Aug 02, 2026

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 1 to 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 sccache setup.
  • SCCACHE_WEBDAV_ENDPOINT
  • Optional WebDAV endpoint for sccache.
  • SCCACHE_VERSION
  • Version of sccache to install.