From d564f862d787e0a314ccc94d7190cfbcbe99d5cd Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Wed, 6 May 2026 08:08:39 -0600 Subject: [PATCH] ci: fix mdbook edition + isolate fuzz crate from workspace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mdbook 0.4.40 (the version pinned in .github/workflows/docs.yml) doesn't recognize edition = '2024' under [rust], failing the docs build. Drop to '2021' for the in-book code blocks; the heuropt crate itself stays on Rust 2024. Adding [workspace] to the root Cargo.toml made fuzz/Cargo.toml inherit it, but fuzz isn't in the members list — every fuzz-smoke job failed with 'current package believes it's in a workspace when it's not'. Add an empty [workspace] table at the top of fuzz/Cargo.toml so cargo treats fuzz as the root of its own workspace and stops walking up. --- docs/book/book.toml | 2 +- fuzz/Cargo.lock | 2 +- fuzz/Cargo.toml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/book/book.toml b/docs/book/book.toml index 8c81c09..f087e48 100644 --- a/docs/book/book.toml +++ b/docs/book/book.toml @@ -31,4 +31,4 @@ use-boolean-and = true enable = true [rust] -edition = "2024" +edition = "2021" diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index b8479fb..e068d97 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -66,7 +66,7 @@ dependencies = [ [[package]] name = "heuropt" -version = "0.3.0" +version = "0.8.0" dependencies = [ "rand", "rand_distr", diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index baf728c..34c6227 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,3 +1,7 @@ +[workspace] +# Detach from the parent heuropt workspace so cargo-fuzz can build +# this crate independently without listing it as a workspace member. + [package] name = "heuropt-fuzz" version = "0.0.0"