Skip to content

Reuse cached cargo tools in rust templates - #215

Merged
timkpaine merged 1 commit into
mainfrom
cargo-install-cache
Nov 5, 2026
Merged

timkpaine merged 1 commit into
mainfrom
cargo-install-cache

Conversation

@timkpaine

Copy link
Copy Markdown
Member

actions-ext/rust/setup caches cargo binaries (cache-bin: true), but cargo install --force rebuilds cargo-nextest, cargo-llvm-cov and wasm-bindgen-cli from source on every run anyway. Without --force, cargo skips a tool that is already at the latest version (or at the pinned --version for wasm-bindgen-cli) and still upgrades it when a newer release is out.

Also adds --locked to cargo-llvm-cov in the rust template, matching rustjswasm.

Split out of #167.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine merged commit bf17203 into main Nov 5, 2026
21 checks passed
@timkpaine
timkpaine deleted the cargo-install-cache branch November 5, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant