ci(fuzz): drop --locked on cargo install cargo-fuzz

cargo-fuzz's bundled Cargo.lock pinned rustix=0.36.5, which used the
now-removed `rustc_attrs` cfg name and broke the install step on
current nightly toolchain (the only toolchain that can build the
fuzzers via libfuzzer-sys). Letting cargo resolve fresh picks a
recent rustix that builds cleanly.

Fixes the fuzz-smoke matrix on the v0.4.0 push CI run.
This commit is contained in:
2026-05-05 13:35:58 -06:00
parent 232dbc0172
commit a9edb0916f
+5 -1
View File
@@ -104,6 +104,10 @@ jobs:
with:
workspaces: fuzz -> target
- name: Install cargo-fuzz
run: cargo install cargo-fuzz --locked
# No `--locked`: cargo-fuzz's bundled Cargo.lock pins
# rustix=0.36.5, which uses the now-removed `rustc_attrs` cfg
# name and fails to build on current nightly. Letting cargo
# resolve fresh picks a recent rustix that builds cleanly.
run: cargo install cargo-fuzz
- name: 60-second soak
run: cargo fuzz run ${{ matrix.target }} -- -max_total_time=60