Skip to content

Commit

Permalink
Depend on arbitrary crate directly
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 15, 2022
1 parent c3cd47b commit 4feccb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion fuzz/Cargo.toml
Expand Up @@ -8,7 +8,8 @@ edition = "2018"
cargo-fuzz = true

[dependencies]
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
arbitrary = { version = "1", features = ["derive"] }
libfuzzer-sys = "0.4"
ryu = { path = ".." }

[[bin]]
Expand Down
7 changes: 4 additions & 3 deletions fuzz/fuzz_targets/fuzz_ryu.rs
@@ -1,14 +1,15 @@
#![no_main]
use libfuzzer_sys::arbitrary;

use arbitrary::Arbitrary;
use libfuzzer_sys::fuzz_target;

#[derive(arbitrary::Arbitrary, Debug, Clone)]
#[derive(Arbitrary, Debug, Clone)]
enum FloatInput {
F32(f32),
F64(f64),
}

#[derive(arbitrary::Arbitrary, Debug, Clone)]
#[derive(Arbitrary, Debug, Clone)]
struct Inputs {
inputs: Vec<(FloatInput, bool)>,
}
Expand Down

0 comments on commit 4feccb8

Please sign in to comment.