From e65a9dee6c162c84146bbc830b52f5827d941951 Mon Sep 17 00:00:00 2001 From: "K. Isom" Date: Wed, 21 Oct 2026 22:41:09 -0700 Subject: [PATCH] build(fuzz): require tines-core 1 and check the fuzz crate in ci.sh fuzz/Cargo.toml still required tines-core 0.3.0, so since the 1.0.0 version bump `cargo fuzz run node` failed version selection (B6). The requirement is now "1" and the lock is regenerated. scripts/ci.sh now runs rustfmt and clippy (all targets, -D warnings) on the out-of-workspace fuzz crate on the pinned stable toolchain, so it can't silently stop building again. fuzz/.gitignore ignores target, artifacts and coverage. Co-Authored-By: Claude Opus 5.5 --- fuzz/.gitignore | 3 +++ fuzz/Cargo.lock | 2 +- fuzz/Cargo.toml | 2 +- scripts/ci.sh | 5 +++++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 fuzz/.gitignore diff --git a/fuzz/.gitignore b/fuzz/.gitignore new file mode 100644 index 00000000..735ae0d2 --- /dev/null +++ b/fuzz/.gitignore @@ -0,0 +1,3 @@ +target +artifacts +coverage diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index ed203464..61c5a73a 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -277,7 +277,7 @@ dependencies = [ [[package]] name = "tines-core" -version = "0.3.0" +version = "1.0.0" dependencies = [ "blake2", "heapless", diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 773af80d..b20a7f45 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -10,7 +10,7 @@ edition = "2021" cargo-fuzz = true [dependencies] -tines-core = { path = "../tines-core", version = "0.3.0", features = ["conformance"] } +tines-core = { path = "../tines-core", version = "1", features = ["conformance"] } libfuzzer-sys = "0.4" heapless = "0.8" diff --git a/scripts/ci.sh b/scripts/ci.sh index 6b244202..b548da19 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -19,3 +19,8 @@ cargo test --locked -p tines-core --no-default-features # no_std + conformance combination is actually exercised (not just by inspection). cargo test --locked -p tines-core --no-default-features --features conformance sh scripts/check-no-std.sh +# The fuzz crate sits outside the workspace and only *runs* on nightly +# (cargo-fuzz, see .github/workflows/fuzz.yml), but it must keep resolving and +# compiling on the pinned stable toolchain, or the scheduled job rots unseen. +cargo fmt --manifest-path fuzz/Cargo.toml -- --check +cargo clippy --locked --manifest-path fuzz/Cargo.toml --all-targets -- -D warnings