cargo-test-fuzz
binary and add it to your PATH
:
$ cd path/to/test-fuzz
$ cargo build
$ source env.sh
dependencies
to your crate's Cargo.toml
file:
toml
serde = "1.0"
test-fuzz = { path = "path/to/test-fuzz" }
use
declaration to a file or module containing potential fuzz targets:
rust
use test_fuzz::test_fuzz;
test_fuzz
attribute:
```rust
fn foo(...) { ... } ```
Generate a corpus by runnig cargo test
:
$ cargo test
Fuzz your target by runnig cargo test-fuzz
:
$ cargo test-fuzz --target foo