$ cargo install test-fuzz --version '>=0.1.0-alpha'
Identify a fuzz target by:
dependencies
to the target crate's Cargo.toml
file:
toml
serde = "1.0"
test-fuzz = "0.1.0-alpha"
use
declaration to the target file or module:
rust
use test_fuzz::test_fuzz;
test_fuzz
attribute:
rust
#[test_fuzz]
fn foo(...) {
...
}
Generate a corpus by runnig cargo test
:
$ cargo test
Fuzz your target by runnig cargo test-fuzz
:
$ cargo test-fuzz --target foo
test_fuzz
skip
- TODO
rename = "name"
- TODO
test_fuzz_impl
TODO
cargo test-fuzz
options-- <args>...
- TODO
--list
- TODO
--no-instrumentation
- TODO
--no-run
- TODO
--persistent
- TODO
--resume
- TODO
-p, --package = <package>
- TODO
--target = <target>
- TODO
Global variables - TODO
Type parameters - TODO