Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(fuzz): Add fuzz targets to workspace #1117

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
15 changes: 8 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 All @@ -21,7 +16,13 @@ protobuf = { path = "../protobuf" }
[[bin]]
name = "proto3"
path = "fuzzers/proto3.rs"
test = false
doc = false
bench = false

[[bin]]
name = "proto2"
path = "fuzzers/proto2.rs"
test = false
doc = false
bench = false
1 change: 0 additions & 1 deletion fuzz/fuzzers/proto2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ use tests::roundtrip;
fuzz_target!(|data: &[u8]| {
let _ = roundtrip::<TestAllTypesProto2>(data).unwrap_error();
});

Loading