workspace: add anyhow

This commit is contained in:
hinto.janai 2024-03-28 16:39:41 -04:00
parent ba5a495a1d
commit f301087506
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
3 changed files with 23 additions and 1 deletions

18
Cargo.lock generated
View file

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

View file

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

View file

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