Install cargo tools locked (#27929)

This commit is contained in:
konsti authored and GitHub committed 2026-08-20 09:11:02 -04:00
1 parent 0dca233a0d
commit b169b40235
5 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
rustup default < rust-toolchain
rustup component add clippy rustfmt
cargo install cargo-insta
cargo install --locked cargo-insta@1.48.0
cargo fetch
pip install maturin prek
+4 -4
View File
@@ -68,7 +68,7 @@ Ruff is written in Rust. You'll need to install the
You'll also need [Insta](https://insta.rs/docs/) to update snapshot tests:
```shell
cargo install cargo-insta
cargo install --locked cargo-insta
```
You'll need [uv](https://docs.astral.sh/uv/getting-started/installation/) (or `pipx` and `pip`) to
@@ -612,7 +612,7 @@ git clone --branch 3.10 https://github.com/python/cpython.git crates/ruff_linter
Install `hyperfine`:
```shell
cargo install hyperfine
cargo install --locked hyperfine
```
To benchmark the release build:
@@ -777,7 +777,7 @@ critcmp main pr
You must install [`critcmp`](https://github.com/BurntSushi/critcmp) for the comparison.
```bash
cargo install critcmp
cargo install --locked critcmp
```
#### Tips
@@ -831,7 +831,7 @@ flamegraph --perfdata perf.data --no-inline
Install [`cargo-instruments`](https://crates.io/crates/cargo-instruments):
```shell
cargo install cargo-instruments
cargo install --locked cargo-instruments
```
Then run the profiler with
+2 -2
View File
@@ -28,7 +28,7 @@ ty is written in Rust. You'll need to install the
You'll also need [Insta](https://insta.rs/docs/) to update snapshot tests:
```shell
cargo install cargo-insta
cargo install --locked cargo-insta
```
You'll need [uv](https://docs.astral.sh/uv/getting-started/installation/) (or `pipx` and `pip`) to
@@ -45,7 +45,7 @@ We recommend [nextest](https://nexte.st/) to run ty's test suite (via `cargo nex
though it's not strictly necessary:
```shell
cargo install cargo-nextest --locked
cargo install --locked cargo-nextest
```
Throughout this guide, any usages of `cargo test` can be replaced with `cargo nextest run`,
+1 -1
View File
@@ -124,7 +124,7 @@ TY_LOG_PROFILE=1 ty -- --current-directory=../test -vvv
You can convert the textual representation into a visual one using `inferno`.
```shell
cargo install inferno
cargo install --locked inferno
```
```shell
+1 -1
View File
@@ -8,7 +8,7 @@ cd "$SCRIPT_DIR"
if ! cargo fuzz --help >&/dev/null; then
echo "Installing cargo-fuzz..."
cargo install --git https://github.com/rust-fuzz/cargo-fuzz.git
cargo install --git https://github.com/rust-fuzz/cargo-fuzz.git --rev bf2fc668dafda5295aa6fd01825ee67b885f0f2b
fi
if [ ! -d corpus/common ]; then