| prefix-key | The prefix cache key, this can be changed to start a new cache manually. | no | v0-rust |
| shared-key | A cache key that is used instead of the automatic `job`-based key, and is stable over multiple jobs. | no | — |
| key | An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs. | no | — |
| add-job-id-key | If the automatic `job`-based cache key should include the job id. Defaults to true. | no | true |
| add-rust-environment-hash-key | Weather the a hash of the rust environment should be included in the cache key. This includes a hash of all Cargo.toml/Cargo.lock files, rust-toolchain files, and .cargo/config.toml files (if present), as well as the specified 'env-vars'. Defaults to true. | no | true |
| env-vars | Additional environment variables to include in the cache key, separated by spaces. | no | — |
| workspaces | Paths to multiple Cargo workspaces and their target directories, separated by newlines. | no | — |
| cache-directories | Additional non workspace directories to be cached, separated by newlines. | no | — |
| cache-targets | Determines whether workspace targets are cached. If `false`, only the cargo registry will be cached. | no | true |
| cache-on-failure | Cache even if the build fails. Defaults to false. | no | — |
| cache-all-crates | Determines which crates are cached. If `true` all crates will be cached, otherwise only dependent crates will be cached. | no | false |
| cache-workspace-crates | Similar to cache-all-crates. If `true` the workspace crates will be cached. | no | false |
| save-if | Determiners whether the cache should be saved. If `false`, the cache is only restored. | no | true |
| cache-provider | Determines which provider to use for caching. Options are github, or warpbuild. Defaults to github. | no | github |
| cache-bin | Determines whether to cache ${CARGO_HOME}/bin. | no | true |
| lookup-only | Check if a cache entry exists without downloading the cache | no | false |
| cmd-format | A format string used to format commands to be run, i.e. `rustc` and `cargo`. | no | {0} |