mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
Teach every remaining StepResult consumer about the Yield variant ahead of the producer change: - bindings/javascript: map Yield to STEP_IO at the FFI boundary (JS side keeps pumping IO exactly as it does for yields surfaced as IO today) - sync/engine: yield to the sync coroutine, same as IO - sdk-kit: same treatment as IO for both sync and async step paths - tools/dbhash, integration tests: re-step immediately or group with IO - simulators: group with IO to keep schedules identical - fuzz: route Yield to the IO arm instead of the unreachable wildcard All arms are chosen to preserve current behavior exactly, since explicit yields still surface as StepResult::IO until the producer flips. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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