mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
feat: add guide on fuzing
This commit is contained in:
12
fuzz/Cargo.lock
generated
12
fuzz/Cargo.lock
generated
@@ -643,7 +643,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "limbo_core"
|
name = "limbo_core"
|
||||||
version = "0.0.17"
|
version = "0.0.18-pre.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"built",
|
"built",
|
||||||
"cfg_block",
|
"cfg_block",
|
||||||
@@ -680,7 +680,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "limbo_ext"
|
name = "limbo_ext"
|
||||||
version = "0.0.17"
|
version = "0.0.18-pre.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"getrandom 0.3.1",
|
"getrandom 0.3.1",
|
||||||
@@ -689,7 +689,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "limbo_macros"
|
name = "limbo_macros"
|
||||||
version = "0.0.17"
|
version = "0.0.18-pre.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@@ -698,7 +698,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "limbo_sqlite3_parser"
|
name = "limbo_sqlite3_parser"
|
||||||
version = "0.0.17"
|
version = "0.0.18-pre.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"cc",
|
"cc",
|
||||||
@@ -717,7 +717,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "limbo_time"
|
name = "limbo_time"
|
||||||
version = "0.0.17"
|
version = "0.0.18-pre.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"limbo_ext",
|
"limbo_ext",
|
||||||
@@ -729,7 +729,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "limbo_uuid"
|
name = "limbo_uuid"
|
||||||
version = "0.0.17"
|
version = "0.0.18-pre.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"limbo_ext",
|
"limbo_ext",
|
||||||
"mimalloc",
|
"mimalloc",
|
||||||
|
|||||||
43
fuzz/README.md
Normal file
43
fuzz/README.md
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
# Limbo Fuzzing
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
Ensure you have the following installed:
|
||||||
|
|
||||||
|
- Nightly Rust toolchain (required for `cargo-fuzz` unless using Nix)
|
||||||
|
- `cargo-fuzz` (install it using `cargo install cargo-fuzz`)
|
||||||
|
- Nix (if using a `flake.nix` setup)
|
||||||
|
|
||||||
|
## Using Nix
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix develop .#fuzz
|
||||||
|
```
|
||||||
|
|
||||||
|
This will set up the required environment with the nightly toolchain and
|
||||||
|
dependencies.
|
||||||
|
|
||||||
|
## Running the Fuzzer
|
||||||
|
|
||||||
|
If using Nix:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo fuzz run <fuzz_target>
|
||||||
|
```
|
||||||
|
|
||||||
|
If using `rustup` without Nix:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo +nightly fuzz run <fuzz_target>
|
||||||
|
```
|
||||||
|
|
||||||
|
This will compile the fuzz target and start fuzzing with `libFuzzer`.
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
Run the expression target with:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo fuzz run expression
|
||||||
|
```
|
||||||
|
|
||||||
Reference in New Issue
Block a user