Installing from source
First, clone afl.rs:
git clone https://github.com/rust-fuzz/afl.rs
cd afl.rs
Next, checkout afl.rs's submodule (AFL++). Note that --recursive
is not required.
git submodule update --init
Finally, install cargo-afl
:
cargo install --path cargo-afl
Troubleshooting
If cargo-afl
is panicking, consider installing with --debug
and running cargo-afl
with RUST_BACKTRACE=1
, e.g.:
cargo install --path cargo-afl --debug
...
RUST_BACKTRACE=1 cargo afl ...
Adding --debug
to the cargo install
command causes cargo-afl
to produce more elaborate backtraces.