move the fuzzer to its own crate

This commit is contained in:
Tamo
2023-05-29 12:27:39 +02:00
parent 002f42875f
commit 6c6387d05e
8 changed files with 531 additions and 396 deletions

View File

@ -65,13 +65,6 @@ maplit = "1.0.2"
md5 = "0.7.0"
rand = {version = "0.8.5", features = ["small_rng"] }
# fuzzing
arbitrary = { version = "1.3.0", features = ["derive"] }
fastrand = "1.9.0"
[target.'cfg(fuzzing)'.dev-dependencies]
fuzzcheck = "0.12.1"
[features]
all-tokenizations = ["charabia/default"]

View File

@ -52,7 +52,9 @@ enum Operation {
#[derive(Debug, Arbitrary)]
struct Batch([Operation; 5]);
fn main() {
#[test]
#[ignore]
fn fuzz() {
let mut options = EnvOpenOptions::new();
options.map_size(1024 * 1024 * 1024 * 1024);
let _tempdir = TempDir::new().unwrap();