cargo-fuzz

Automate fuzz testing setup for Cargo-based Rust projects with libFuzzer.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/balic-AI-ML-R-D-Resources/eliza_autonomous_agents --skill cargo-fuzz-balic-ai-ml-r-d-resources
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cargo-fuzz
Source: https://github.com/balic-AI-ML-R-D-Resources/eliza_autonomous_agents/tree/main/packages/skills/skills/testing-handbook-skills/skills/cargo-fuzz
Command: npx skills add https://github.com/balic-AI-ML-R-D-Resources/eliza_autonomous_agents --skill cargo-fuzz-balic-ai-ml-r-d-resources

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

cargo-fuzz provides a streamlined fuzzing workflow for Rust projects by integrating with Cargo and libFuzzer. It simplifies harness creation, corpus management, sanitizer integration, and coverage analysis to help identify memory and logic bugs early.

Core Features & Use Cases

  • Integrated fuzzing workflow for Cargo-based Rust projects using libFuzzer
  • Easy harness scaffolding, corpus generation, and fuzz campaign management
  • Sanitizer support (ASan) and coverage analysis to improve code quality

Quick Start

Use cargo fuzz to initialize fuzzing in your Rust project and run a fuzz target with cargo fuzz run.

Frequently Asked Questions about cargo-fuzz

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up fuzz testing for a Rust project with Cargo?

Fuzz testing for a Rust project is set up by initializing cargo-fuzz to scaffold harnesses and automate libFuzzer campaigns. It integrates directly with Cargo-based projects to manage corpus generation and run fuzz targets seamlessly.

What is fuzzing in Rust and how does libFuzzer work with Cargo?

Fuzzing in Rust is an automated testing technique for identifying memory and logic bugs by feeding unexpected inputs. cargo-fuzz integrates libFuzzer with Cargo to manage harness creation, corpus management, and sanitizer support for robust campaigns.

Can I use Address Sanitizer with my Rust fuzz targets?

Yes, Address Sanitizer (ASan) can be integrated with your Rust fuzz targets. cargo-fuzz provides sanitizer support alongside coverage analysis to help identify memory bugs early and improve overall code quality during campaigns.

Does cargo-fuzz work with non-Cargo Rust projects?

No, cargo-fuzz is designed specifically for Cargo-based Rust projects. It relies on the Cargo ecosystem to automate fuzz target scaffolding, harness structure management, and coverage analysis for your fuzzing scenarios.

How do I analyze code coverage from a Rust fuzz campaign?

Code coverage from a Rust fuzz campaign is analyzed using built-in coverage options provided by the fuzzing automation. cargo-fuzz manages corpus generation and integrates coverage analysis to evaluate and improve code quality.

What is the best way to manage a fuzzing corpus for Rust?

The best way to manage a fuzzing corpus for Rust is using an integrated fuzzing workflow that automates corpus generation. cargo-fuzz handles corpus management alongside harness scaffolding and campaign running for Cargo projects.