ok/jj
1
0
Fork 0
forked from mirrors/jj

benches: move diff_bench to lib crate

It has no dependency on the cli crate.
This commit is contained in:
Yuya Nishihara 2023-03-27 17:23:27 +09:00
parent 7ebffe8e6f
commit 91d0c28080
4 changed files with 8 additions and 8 deletions

4
Cargo.lock generated
View file

@ -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",

View file

@ -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" }

View file

@ -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"