mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
|
|
||
|---|---|---|
| .. | ||
| fuzz_targets | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
Limbo Fuzzing
Prerequisites
Ensure you have the following installed:
- Nightly Rust toolchain (required for
cargo-fuzzunless using Nix) cargo-fuzz(install it usingcargo install cargo-fuzz)- Nix (if using a
flake.nixsetup)
Using Nix
nix develop .#fuzz
This will set up the required environment with the nightly toolchain and dependencies.
Running the Fuzzer
If using Nix:
cargo fuzz run <fuzz_target>
If using rustup without Nix:
cargo +nightly fuzz run <fuzz_target>
This will compile the fuzz target and start fuzzing with libFuzzer.
Example
Run the expression target with:
cargo fuzz run expression