Rollup merge of #161428 - konstin:konsti/cargo-install-locked, r=folkertdev
Install cargo tools with locked dependencies Installing cargo tools (`cargo install`) without locked dependencies exposes users to supply-chain attacks to all the dependencies of the tool (https://blog.rust-lang.org/2026/08/20/supply-chain-attack-on-arrayref/). Using `cargo install --locked` reduces this risk to a compromise of the tool itself, while using the locked and hashed version of the dependencies. I went through all `rg "cargo install"` hits in the repository and added `--locked` to all but explanatory examples (such as cargo's docs on `cargo install` itself). I validated that those tools publish functioning `Cargo.lock`s with https://gist.github.com/konstin/bcb1169c1c1120c259dca64e777a64d0.
J
Jonathan Brouwer committed
62fa8974265296c42e516eb1c3e56353f4fc1bd9
Committed by GitHub <noreply@github.com>
on 8/22/2026, 2:28:31 PM
No diff available for this commit.