From f3010875068d8666920e07f3d7d36fb51d5a36ba Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Thu, 28 Mar 2024 16:39:41 -0400 Subject: [PATCH] workspace: add `anyhow` --- Cargo.lock | 18 ++++++++++++++++++ Cargo.toml | 2 ++ database/benchmark/Cargo.toml | 4 +++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 1207e7c..a5122b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,6 +109,12 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "anyhow" +version = "1.0.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" + [[package]] name = "async-lock" version = "3.3.0" @@ -610,6 +616,18 @@ dependencies = [ "tower", ] +[[package]] +name = "cuprate-database-benchmark" +version = "0.0.0" +dependencies = [ + "anyhow", + "cfg-if", + "clap", + "cuprate-helper", + "rayon", + "tracing", +] + [[package]] name = "cuprate-helper" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 9e640e4..12b8f76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ members = [ "consensus/rules", "cryptonight", "database", + "database/benchmark", "helper", "net/epee-encoding", "net/fixed-bytes", @@ -36,6 +37,7 @@ opt-level = 1 opt-level = 3 [workspace.dependencies] +anyhow = { version = "1.0.81", default-features = false } async-trait = { version = "0.1.74", default-features = false } bitflags = { version = "2.4.2", default-features = false } borsh = { version = "1.2.1", default-features = false } diff --git a/database/benchmark/Cargo.toml b/database/benchmark/Cargo.toml index 450dc0a..2f6bb14 100644 --- a/database/benchmark/Cargo.toml +++ b/database/benchmark/Cargo.toml @@ -14,7 +14,9 @@ default = [] [dependencies] anyhow = { workspace = true } cfg-if = { workspace = true } -cuprate-helper = { path = "../helper", features = ["fs", "thread"] } +clap = { workspace = true, features = ["default", "derive"] } +cuprate-helper = { path = "../../helper", features = ["fs", "thread"] } +tracing = { workspace = true } rayon = { workspace = true, optional = true } [dev-dependencies] \ No newline at end of file