mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-24 11:26:03 +00:00
fix cargo
This commit is contained in:
parent
da3417f71f
commit
0aa5f77c5e
5 changed files with 19 additions and 3 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -748,6 +748,7 @@ dependencies = [
|
|||
"cuprate-database",
|
||||
"cuprate-helper",
|
||||
"function_name",
|
||||
"rand",
|
||||
"tempfile",
|
||||
]
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue