# Generics-Aware Fuzz Target Generation for Rust Libraries via Structured API Analysis

arXiv: https://arxiv.org/abs/2608.08637 · HTML: https://mlsanity.com/paper/2608.08637/

## Key facts

- Cited by 1 papers in the map (data through 24 Nov 2026).
- Submitted 9 Aug 2026.

## Built on by (most cited first, 1 of 1)

- [Agentic Discovery of Soundness Bugs in Safe Rust Bindings](https://mlsanity.com/paper/2611.31813/) (2026)

## Abstract (arXiv)

Fuzzing Rust library APIs requires constructing well-typed, compilable call sequences that satisfy ownership rules, generic parameters, and trait bounds; existing tools ignore these constraints or use shallow heuristics, yielding low coverage. We present GRAFT, which extracts structured API information from Rust documentation, builds an API dependency graph via recursive generics-aware type matching, and uses topology-guided traversal plus LLM synthesis with compiler-error feedback to produce compilable fuzz targets. On 13 crates from crates.io, GRAFT achieves 80.75% macro-average API coverage at 96.19% compilation success, outperforming RULF and RPG by 4.76x and 2.43x, and reaching 1.41x the average API coverage of deepSURF on crates with unsafe-reaching APIs.
