fix cargo

This commit is contained in:
hinto.janai 2024-10-22 17:08:06 -04:00
parent da3417f71f
commit 0aa5f77c5e
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
5 changed files with 19 additions and 3 deletions

1
Cargo.lock generated
View file

@ -748,6 +748,7 @@ dependencies = [
"cuprate-database",
"cuprate-helper",
"function_name",
"rand",
"tempfile",
]

View file

@ -14,13 +14,24 @@ heed = ["cuprate-database/heed", "cuprate-blockchain/heed"]
redb = ["cuprate-database/redb", "cuprate-blockchain/redb"]
[dependencies]
# FIXME:
# Some crates/features that are unused here but
# needed in other crates are pulled in, see:
# - <https://github.com/Cuprate/cuprate/issues/325>
#
# Remove:
# - rand
# - cuprate-blockchain/asynch
# - cuprate-blockchain/tx
criterion = { workspace = true }
cuprate-database = { path = "../../../storage/database" }
cuprate-blockchain = { path = "../../../storage/blockchain" }
cuprate-helper = { path = "../../../helper", features = ["fs", "thread"] }
cuprate-blockchain = { path = "../../../storage/blockchain", features = ["service"] }
cuprate-helper = { path = "../../../helper", features = ["asynch", "fs", "thread", "tx"] }
function_name = { workspace = true }
tempfile = { workspace = true}
tempfile = { workspace = true }
rand = { workspace = true, features = ["std", "std_rng"] }
[[bench]]
name = "main"

View file

@ -19,6 +19,7 @@
//!
//! Writes are single-threaded, so they only use [`TmpEnv::new`].
#![allow(unused_crate_dependencies, unused_attributes)]
#![expect(clippy::significant_drop_tightening, clippy::needless_pass_by_value)]
// TODO

View file

@ -1,6 +1,7 @@
//! Same as `env.rs` but multi-threaded.
//! TODO: create multi-threaded benchmarks
#![allow(unused_crate_dependencies, unused_attributes)]
#![expect(clippy::significant_drop_tightening)]
// TODO

View file

@ -1,5 +1,7 @@
//! [`Storable`] benchmarks.
#![allow(unused_crate_dependencies, unused_attributes)]
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use function_name::named;