talira

Compare

Swatinem/rust-cacheMr Boxington (mbx)actions/cachesccache
What it isA GitHub Action that implements smart caching for rust/cargo projects with sensible defaults.A shared cache for Cargo buildsCache dependencies and build outputs in GitHub ActionsShared compilation cache for C, C++, Rust and CUDA, stored locally or in the cloud
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.510.670.470.73
Stars196777056067932
Last commit2026-11-142026-11-142026-07-152026-11-14
LicenceLGPL-3.0MITMITApache-2.0
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostableYesYes—Yes
Ways to run it————
SOC 2————
HIPAA————
SSO————
APINo——No
PluginsNo——No
MCP serverNo——No
Company——GitHub
acquired by Microsoft (2018)
Mozilla
Features
  • caches registry, git deps and target dir
  • automatic cache keys from rustc version and lockfiles
  • shared-key and prefix-key
  • cache pruning
  • reuse across worktrees
  • managed target dirs with budgets and GC
  • shared CPU/memory permits across parallel builds
  • in-flight compile dedupe
  • private incremental state for edited crates
  • GitHub Actions cache, cache server or S3 backends
  • writes only from protected branches
  • cache-aware build display (cargo-pretty)
  • All 12 features
  • save and restore paths under a key built from contexts and hashFiles
  • restore-keys prefix matching to fall back to the nearest older cache
  • actions/cache/restore and actions/cache/save sub-actions to restore or save on their own
  • lookup-only checks whether an entry exists without downloading it
  • cache-hit output to skip steps on an exact key match
  • fail-on-cache-miss stops the job when no entry matches
  • enableCrossOsArchive lets Windows runners share caches with other operating systems
  • a save denied by a read-only cache token warns instead of failing the job
  • All 9 features
  • local disk cache
  • S3/R2/GCS/Azure/Redis/Memcached/WebDAV backends
  • GitHub Actions cache backend
  • multi-level cache
  • icecream-style distributed compilation
  • Rust, C/C++, CUDA support
Limitations
      • Can't update a cache entry once it's saved: a key is immutable, so new contents need a new key
      • Doesn't keep entries that go unused: GitHub removes any not accessed in 7 days, and evicts the least recently used once a repository passes its limit (10 GB by default)
      • Doesn't share caches with sibling or child branches or other tags: a run restores only its own branch's, the default branch's and a pull request's base branch's
      • Doesn't let other branches restore a pull request run's caches: they're scoped to its merge ref, so only re-runs of that pull request can