ci: fix mdbook edition + isolate fuzz crate from workspace
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.
This commit is contained in:
+1
-1
@@ -31,4 +31,4 @@ use-boolean-and = true
|
|||||||
enable = true
|
enable = true
|
||||||
|
|
||||||
[rust]
|
[rust]
|
||||||
edition = "2024"
|
edition = "2021"
|
||||||
|
|||||||
Generated
+1
-1
@@ -66,7 +66,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "heuropt"
|
name = "heuropt"
|
||||||
version = "0.3.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rand",
|
"rand",
|
||||||
"rand_distr",
|
"rand_distr",
|
||||||
|
|||||||
@@ -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]
|
[package]
|
||||||
name = "heuropt-fuzz"
|
name = "heuropt-fuzz"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user