From file to useful result
How to ask with this skill installed
Installing the skill gives your AI a method. Your request still has to provide the case-specific facts, constraints and expected output.
Describe the decision or deliverable, not just the topic.
Add source material, audience, limits and known facts.
Set format, quality criteria and checks.
When to use it
cargo-fuzz is currently the primary and most mature fuzzing solution for Rust projects using Cargo.
| Fuzzer | Best For | Complexity | |--------|----------|------------| | cargo-fuzz | Cargo-based Rust projects, quick setup | Low | | AFL++ | Multi-core fuzzing, non-Cargo projects | Medium | | LibAFL | Custom fuzzers, research, advanced use cases | High |
Choose cargo-fuzz when:
- Your project uses Cargo (required)
- You want simple, quick setup with minimal configuration
- You need integrated sanitizer support
- You're fuzzing Rust code with or without unsafe blocks
Mistakes to avoid
| Problem | Cause | Solution | |---------|-------|----------| | "requires nightly" error | Using stable toolchain | Use cargo +nightly fuzz | | Slow fuzzing performance | ASan enabled for safe Rust | Add --sanitizer none flag | | "cannot find binary" | No library crate | Move code from main.rs to lib.rs | | Sanitizer compilation issues | Wrong nightly version | Try different nightly: rustup install nightly-2024-01-01 | | Low coverage | Missing seed corpus | Add sample inputs to fuzz/corpus/fuzz_target_1/ | | Magic value not found | No dictionary | Create dictionary file with magic values |