diff --git a/Cargo.lock b/Cargo.lock index b57b4820e..6c2efd4c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -794,8 +794,6 @@ dependencies = [ "clap_complete", "clap_mangen", "config", - "criterion", - "criterion_bencher_compat", "crossterm", "dirs", "esl01-renderdag", @@ -837,6 +835,8 @@ dependencies = [ "bytes", "chrono", "config", + "criterion", + "criterion_bencher_compat", "digest", "git2", "hex", diff --git a/Cargo.toml b/Cargo.toml index 85ae92d84..6c1b8a17a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,10 +26,6 @@ path = "testing/fake-editor.rs" name = "fake-diff-editor" path = "testing/fake-diff-editor.rs" -[[bench]] -name = "diff_bench" -harness = false - [workspace] members = ["lib", "lib/testutils", "lib/gen-protos"] @@ -71,8 +67,6 @@ libc = { version = "0.2.140" } [dev-dependencies] assert_cmd = "2.0.8" assert_matches = "1.5.0" -criterion = "0.4.0" -criterion_bencher_compat = "0.4.0" insta = { version = "1.29.0", features = ["filters"] } regex = "1.7.2" testutils = { path = "lib/testutils" } diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 540332987..859ad8919 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -13,6 +13,10 @@ readme = "../README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[[bench]] +name = "diff_bench" +harness = false + [build-dependencies] version_check = "0.9.4" @@ -45,6 +49,8 @@ zstd = "0.12.3" [dev-dependencies] assert_matches = "1.5.0" +criterion = "0.4.0" +criterion_bencher_compat = "0.4.0" insta = "1.29.0" num_cpus = "1.15.0" test-case = "3.0.0" diff --git a/benches/diff_bench.rs b/lib/benches/diff_bench.rs similarity index 100% rename from benches/diff_bench.rs rename to lib/benches/diff_bench.rs