MCPcopy Index your code
hub / github.com/AFLplusplus/cargo-libafl

github.com/AFLplusplus/cargo-libafl @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
66 symbols 130 edges 16 files 13 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cargo-libafl

This repository is outdated. It is superseded by libafl_libfuzzer!

This cargo utility is a replacement for (and a fork of) cargo-fuzz to use a LibAFL-based fuzzer instead of libfuzzer.

The available features are still behind the original cargo-fuzz.

Install

You need a nightly compiler to use cargo-libafl.

cargo install -f cargo-libafl 

Use

cargo libafl --help

Custom Runtimes

If you need to use a custom runtime for your target, e.g. when using custom mutators, define an environmental variable CUSTOM_LIBAFL_RUNTIME to the target/release folder of your runtime. Note that your runtime should match the name (cargo-libafl-runtime) and the flags of the original runtime. To do this effectively, you should copy the cargo-libafl-runtime folder and modify it to your needs.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

RunCommand (Interface)
A trait for running our various commands. [8 implementers]
cargo-libafl/src/main.rs

Core symbols most depended-on inside this repo

fuzz_dir
called by 6
cargo-libafl/src/project.rs
default_target
called by 3
cargo-libafl/src/utils.rs
cargo_run
called by 3
cargo-libafl/src/project.rs
exec_build
called by 3
cargo-libafl/src/project.rs
manifest_path
called by 3
cargo-libafl/src/project.rs
artifacts_for
called by 3
cargo-libafl/src/project.rs
runtime_dir
called by 2
cargo-libafl/src/common.rs
create_target_template
called by 2
cargo-libafl/src/project.rs

Shape

Method 36
Function 16
Class 11
Enum 2
Interface 1

Languages

Rust100%

Modules by API surface

cargo-libafl/src/project.rs31 symbols
cargo-libafl/src/options.rs6 symbols
cargo-libafl/src/common.rs5 symbols
cargo-libafl/src/main.rs4 symbols
cargo-libafl/cargo-libafl-runtime/runtime.rs3 symbols
cargo-libafl/src/options/run.rs2 symbols
cargo-libafl/src/options/list.rs2 symbols
cargo-libafl/src/options/init.rs2 symbols
cargo-libafl/src/options/fmt.rs2 symbols
cargo-libafl/src/options/coverage.rs2 symbols
cargo-libafl/src/options/build.rs2 symbols
cargo-libafl/src/options/add.rs2 symbols

For agents

$ claude mcp add cargo-libafl \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact