{"id":5801550,"name":"Swatinem/rust-cache","ecosystem":"actions","description":"A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults.","homepage":null,"licenses":"lgpl-3.0","normalized_licenses":["LGPL-3.0"],"repository_url":"https://github.com/Swatinem/rust-cache","keywords_array":[],"namespace":"Swatinem","versions_count":34,"first_release_published_at":"2020-09-26T21:48:47.000Z","latest_release_published_at":"2026-03-12T17:15:23.000Z","latest_release_number":"v2.9.1","last_synced_at":"2026-06-27T04:00:48.290Z","created_at":"2023-01-04T13:12:37.080Z","updated_at":"2026-06-27T04:00:48.290Z","registry_url":"https://github.com/Swatinem/rust-cache","install_command":null,"documentation_url":null,"metadata":{"name":"Rust Cache","description":"A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults.","author":"Arpad Borsos \u003cswatinem@swatinem.de\u003e","inputs":{"prefix-key":{"description":"The prefix cache key, this can be changed to start a new cache manually.","required":false,"default":"v0-rust"},"shared-key":{"description":"A cache key that is used instead of the automatic `job`-based key, and is stable over multiple jobs.","required":false},"key":{"description":"An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs.","required":false},"add-job-id-key":{"description":"If the automatic `job`-based cache key should include the job id. Defaults to true.","required":false,"default":"true"},"add-rust-environment-hash-key":{"description":"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.","required":false,"default":"true"},"env-vars":{"description":"Additional environment variables to include in the cache key, separated by spaces.","required":false},"workspaces":{"description":"Paths to multiple Cargo workspaces and their target directories, separated by newlines.","required":false},"cache-directories":{"description":"Additional non workspace directories to be cached, separated by newlines.","required":false},"cache-targets":{"description":"Determines whether workspace targets are cached. If `false`, only the cargo registry will be cached.","required":false,"default":"true"},"cache-on-failure":{"description":"Cache even if the build fails. Defaults to false.","required":false},"cache-all-crates":{"description":"Determines which crates are cached. If `true` all crates will be cached, otherwise only dependent crates will be cached.","required":false,"default":"false"},"cache-workspace-crates":{"description":"Similar to cache-all-crates. If `true` the workspace crates will be cached.","required":false,"default":"false"},"save-if":{"description":"Determiners whether the cache should be saved. If `false`, the cache is only restored.","required":false,"default":"true"},"cache-provider":{"description":"Determines which provider to use for caching. Options are github, buildjet, or warpbuild. Defaults to github.","required":false,"default":"github"},"cache-bin":{"description":"Determines whether to cache ${CARGO_HOME}/bin.","required":false,"default":"true"},"lookup-only":{"description":"Check if a cache entry exists without downloading the cache","required":false,"default":"false"},"cmd-format":{"description":"A format string used to format commands to be run, i.e. `rustc` and `cargo`.","required":false,"default":"{0}"}},"outputs":{"cache-hit":{"description":"A boolean value that indicates an exact match was found."}},"runs":{"using":"node24","main":"dist/restore/index.js","post":"dist/save/index.js","post-if":"success() || env.CACHE_ON_FAILURE == 'true'"},"branding":{"icon":"archive","color":"gray-dark"},"default_branch":"master","path":null},"repo_metadata":{"id":37392054,"uuid":"298565987","full_name":"Swatinem/rust-cache","owner":"Swatinem","description":"A GitHub Action that implements smart caching for rust/cargo projects ","archived":false,"fork":false,"pushed_at":"2026-03-19T07:14:46.000Z","size":6871,"stargazers_count":1767,"open_issues_count":64,"forks_count":169,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-03-22T07:49:43.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Swatinem.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["Swatinem"]}},"created_at":"2020-09-25T12:26:54.000Z","updated_at":"2026-03-22T04:38:43.000Z","dependencies_parsed_at":"2025-04-09T19:15:17.772Z","dependency_job_id":"239f60f4-0469-48e2-840b-066a73eb198e","html_url":"https://github.com/Swatinem/rust-cache","commit_stats":{"total_commits":171,"total_committers":32,"mean_commits":5.34375,"dds":0.52046783625731,"last_synced_commit":"68b3cb7503c78e67dae8373749990a220eb65352"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/Swatinem/rust-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swatinem%2Frust-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swatinem%2Frust-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swatinem%2Frust-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swatinem%2Frust-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swatinem","download_url":"https://codeload.github.com/Swatinem/rust-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swatinem%2Frust-cache/sbom","scorecard":{"id":136187,"data":{"date":"2025-08-11","repo":{"name":"github.com/Swatinem/rust-cache","commit":"a8b36e3f740d2ae4fa6e44a424a7b296af51cbef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Maintained","score":5,"reason":"7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":4,"reason":"Found 14/30 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/buildjet.yml:1","Warn: no topLevel permission defined: .github/workflows/check-dist.yml:1","Warn: no topLevel permission defined: .github/workflows/coverage.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/dependabot.yml:7","Warn: no topLevel permission defined: .github/workflows/git-registry.yml:1","Warn: no topLevel permission defined: .github/workflows/install.yml:1","Warn: no topLevel permission defined: .github/workflows/simple.yml:1","Warn: no topLevel permission defined: .github/workflows/target-dir.yml:1","Warn: no topLevel permission defined: .github/workflows/workspaces.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/buildjet.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/buildjet.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/check-dist.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/check-dist.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/check-dist.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/dependabot.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/git-registry.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/git-registry.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/install.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/install.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/simple.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/simple.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/target-dir.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/target-dir.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workspaces.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Swatinem/rust-cache/workspaces.yml/master?enable=pin","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch 'v1'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-qx2v-8332-m4fv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T06:36:41.436Z","repository_id":37392054,"created_at":"2025-08-16T06:36:41.436Z","updated_at":"2025-08-16T06:36:41.436Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30840243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-22T05:45:47.827Z","status":"ssl_error","status_checked_at":"2026-03-22T05:45:39.030Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"tags":[]},"repo_metadata_updated_at":"2026-03-28T12:59:27.289Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":17198,"rankings":{"downloads":null,"dependent_repos_count":0.10457930597369673,"dependent_packages_count":0.0,"stargazers_count":0.266201869751228,"forks_count":0.7637458405957851,"docker_downloads_count":5.086357154175249,"average":1.2441768340991917},"purl":"pkg:githubactions/Swatinem/rust-cache","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/Swatinem/rust-cache","docker_dependents_count":3,"docker_downloads_count":5,"usage_url":"https://repos.ecosyste.ms/usage/actions/Swatinem/rust-cache","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/Swatinem/rust-cache/dependencies","status":null,"funding_links":["https://github.com/sponsors/Swatinem"],"critical":true,"issue_metadata":{"last_synced_at":"2025-12-17T06:25:24.552Z","issues_count":155,"pull_requests_count":96,"avg_time_to_close_issue":5690561.191919192,"avg_time_to_close_pull_request":1160394.4024390243,"issues_closed_count":99,"pull_requests_closed_count":82,"pull_request_authors_count":44,"issue_authors_count":132,"avg_comments_per_issue":2.3806451612903228,"avg_comments_per_pull_request":1.0729166666666667,"merged_pull_requests_count":69,"bot_issues_count":0,"bot_pull_requests_count":22,"past_year_issues_count":27,"past_year_pull_requests_count":40,"past_year_avg_time_to_close_issue":883151.0,"past_year_avg_time_to_close_pull_request":852937.8571428572,"past_year_issues_closed_count":6,"past_year_pull_requests_closed_count":28,"past_year_pull_request_authors_count":14,"past_year_issue_authors_count":27,"past_year_avg_comments_per_issue":0.7407407407407407,"past_year_avg_comments_per_pull_request":0.425,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":22,"past_year_merged_pull_requests_count":25,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swatinem%2Frust-cache/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Swatinem%2Frust-cache/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Swatinem%2Frust-cache/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Swatinem%2Frust-cache/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Swatinem%2Frust-cache/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Swatinem%2Frust-cache/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Swatinem%2Frust-cache/codemeta","maintainers":[]}