lmaotrigine/Rust Cache
Smart caching for rust/cargo projects with sensible defaults
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| 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 key and can be used to further differentiate jobs. | no | — |
| 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 |
| save-if | Determines whether the cache should be saved. If `false`, the cache is only restored. | no | true |
Outputs
| name | description |
|---|---|
| cache-hit | A boolean value that indicates an exact match was found |