mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
Database::open_file now requires an explicit dialect. Select the SQLite dialect so the schema target builds and can execute its comparisons against SQLite again. Tests: cargo +nightly fuzz build --dev schema; eight fixed inputs covering table creation, indexes, and renames. LeakSanitizer reports retained core CompletionGroup allocations during these runs; no SQL assertions failed.
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