From d60c29498a813a2e6eb551b38f907372e956f8dd Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:27:40 +0800 Subject: [PATCH] dev: move incremental fuzzer (#390) --- Cargo.lock | 2 +- Cargo.toml | 3 ++- {tests => fuzzers}/incremental/Cargo.toml | 2 +- {tests => fuzzers}/incremental/src/lib.rs | 0 {tests => fuzzers}/incremental/src/main.rs | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) rename {tests => fuzzers}/incremental/Cargo.toml (94%) rename {tests => fuzzers}/incremental/src/lib.rs (100%) rename {tests => fuzzers}/incremental/src/main.rs (98%) diff --git a/Cargo.lock b/Cargo.lock index e3cc2e5c..4fdf6f81 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4323,7 +4323,7 @@ dependencies = [ ] [[package]] -name = "typst-ts-incremental-test" +name = "typst-ts-incremental-fuzzer" version = "0.4.0-rc11" dependencies = [ "anyhow", diff --git a/Cargo.toml b/Cargo.toml index f6db6b10..90c26b82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,8 @@ members = [ "exporter/serde", "exporter/svg", + "fuzzers/incremental", + "packages/compiler", "packages/renderer", @@ -33,7 +35,6 @@ members = [ "tests/common", "tests/heap-profile", - "tests/incremental", "tests/integration", "tests/std", ] diff --git a/tests/incremental/Cargo.toml b/fuzzers/incremental/Cargo.toml similarity index 94% rename from tests/incremental/Cargo.toml rename to fuzzers/incremental/Cargo.toml index 8c113e28..4a1d46a9 100644 --- a/tests/incremental/Cargo.toml +++ b/fuzzers/incremental/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "typst-ts-incremental-test" +name = "typst-ts-incremental-fuzzer" authors.workspace = true version.workspace = true license.workspace = true diff --git a/tests/incremental/src/lib.rs b/fuzzers/incremental/src/lib.rs similarity index 100% rename from tests/incremental/src/lib.rs rename to fuzzers/incremental/src/lib.rs diff --git a/tests/incremental/src/main.rs b/fuzzers/incremental/src/main.rs similarity index 98% rename from tests/incremental/src/main.rs rename to fuzzers/incremental/src/main.rs index 85536f7d..02116db0 100644 --- a/tests/incremental/src/main.rs +++ b/fuzzers/incremental/src/main.rs @@ -14,7 +14,7 @@ use typst_ts_core::{ stream::BytesModuleStream, }, }; -use typst_ts_incremental_test::mutate; +use typst_ts_incremental_fuzzer::mutate; use typst_ts_svg_exporter::IncrSvgDocClient; fn get_driver(