Skip to content

Commit

Permalink
build(fuzz): Add fuzz targets to workspace
Browse files Browse the repository at this point in the history
`cargo-fuzz` recommends adding the `fuzz` crate to the workspace. It seems the problem of not compiling is fixed with recent dependencies.

source: https://github.com/rust-fuzz/cargo-fuzz?tab=readme-ov-file#usage
  • Loading branch information
caspermeijn committed Aug 9, 2024
1 parent 53ca327 commit e68d366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ members = [
"tests-2015",
"tests-no-std",
"tests/single-include",
]

exclude = [
# The fuzz crate can't be compiled or tested without the 'cargo fuzz' command,
# so exclude it from normal builds.
"fuzz",
]

Expand Down
9 changes: 2 additions & 7 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
name = "fuzz"
version = "0.0.0"
publish = false
edition = "2021"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Casper Meijn <casper@meijn.net>",
"Tokio Contributors <team@tokio.rs>",
]
edition.workspace = true
authors.workspace = true

[package.metadata]
cargo-fuzz = true
Expand Down

0 comments on commit e68d366

Please sign in to comment.