rust-fuzz/cargo-fuzz
rust-fuzz/cargo-fuzz has 1,927 GitHub stars and 135 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 01:08 UTC. Last push 2026-07-20.
Command line helpers for fuzzing
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalcargo fuzz
A cargo subcommand for fuzzing with libFuzzer! Easy to use!
Installation
$ cargo install cargo-fuzz
Note: libFuzzer needs LLVM sanitizer support, so this only works on x86-64 and Aarch64,
and only on Unix-like operating systems (not Windows). This also needs a nightly compiler since it uses some
unstable command-line flags. You'll also need a C++ compiler with C++11 support.
Usage
cargo fuzz init
Initialize a cargo fuzz project for your crate!
If your crate uses cargo workspaces, add fuzz directory to workspace.members in root Cargo.toml
fuzz directory can be either a part of an existing workspace (default)
or use an independent workspace. If latter is desired, you can use
cargo fuzz init --fuzzing-workspace=true.
cargo fuzz add <target>
Create a new fuzzing target!
cargo fuzz run <target>
Run a fuzzing target and find bugs!
cargo fuzz fmt <target> <input>
Print the std::fmt::Debug output for a test case. Useful when your fuzz target
takes an Arbitrary input!
cargo fuzz tmin <target> <input>
Found a failing input? Minify it to the smallest input that causes that failure for easier debugging!
cargo fuzz cmin <target>
Minify your corpus of input files!
cargo fuzz coverage <target>
Generate coverage information on the fuzzed program!
Documentation
Documentation can be found in the Rust Fuzz Book.
You can also always find the full command-line options that are available with
--help:
$ cargo fuzz --help
Trophy case
The trophy case has a list of bugs
found by cargo fuzz (and others). Did cargo fuzz and libFuzzer find a bug
for you? Add it to the trophy case!
License
cargo-fuzz is distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,452 starspublic-apis/public-apis
A collective list of free APIs
496,767 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
438,168 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,078 stars