Skip to content

Commit

Permalink
Cargo cleanup (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris authored Jun 12, 2024
1 parent 7ec3041 commit 78f8af5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
14 changes: 2 additions & 12 deletions firewood/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,28 @@ readme = "../README.md"
[dependencies]
aquamarine = "0.5.0"
async-trait = "0.1.77"
bytemuck = { version = "1.14.3", features = ["derive"] }
enum-as-inner = "0.6.0"
storage = { version = "0.0.4", path = "../storage" }
futures = "0.3.30"
hex = "0.4.3"
lru = "0.12.2"
metered = "0.9.0"
nix = {version = "0.28.0", features = ["fs", "uio"]}
parking_lot = "0.12.1"
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1.0" }
sha2 = "0.10.8"
thiserror = "1.0.57"
tokio = { version = "1.36.0", features = ["rt", "sync", "macros", "rt-multi-thread"] }
typed-builder = "0.18.1"
bincode = "1.3.3"
bitflags = { version = "2.4.2", features = ["bytemuck"] }
env_logger = { version = "0.11.2", optional = true }
log = { version = "0.4.20", optional = true }
test-case = "3.3.1"
smallvec = { version = "1.13.2", features = ["serde", "write", "union"] }
integer-encoding = "4.0.0"

[features]
logger = ["dep:env_logger", "log"]
logger = ["log"]

[dev-dependencies]
criterion = {version = "0.5.1", features = ["async_tokio"]}
keccak-hasher = "0.15.3"
rand = "0.8.5"
triehash = "0.8.4"
assert_cmd = "2.0.13"
predicates = "3.1.0"
clap = { version = "4.5.0", features = ['derive'] }
pprof = { version = "0.13.0", features = ["flamegraph"] }

Expand Down
6 changes: 4 additions & 2 deletions grpc-testtool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ bench = false
[dependencies]
firewood = { version = "0.0.4", path = "../firewood" }
prost = "0.12.3"
thiserror = "1.0.57"
tokio = { version = "1.36.0", features = ["sync", "rt-multi-thread"] }
tonic = { version = "0.11.0", features = ["tls"] }
tracing = { version = "0.1.40" }
clap = { version = "4.5.0", features = ["derive"] }
tempdir = "0.3.7"
log = "0.4.20"
env_logger = "0.11.2"
chrono = "0.4.34"
Expand All @@ -49,3 +47,7 @@ unwrap_used = "warn"
indexing_slicing = "warn"
explicit_deref_methods = "warn"
missing_const_for_fn = "warn"

[package.metadata.cargo-machete]
ignored = ["prost", "tonic_build"]

2 changes: 1 addition & 1 deletion storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ hex = "0.4.3"
serde = { version = "1.0.199", features = ["derive"] }
smallvec = { version = "1.13.2", features = ["serde", "write", "union"] }
sha2 = "0.10.8"
bytemuck = { version = "1.14.3", features = ["derive"] }
integer-encoding = "4.0.0"

[dev-dependencies]
rand = "0.8.5"
Expand Down
4 changes: 2 additions & 2 deletions storage/src/nodestore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const AREA_SIZES: [u64; 21] = [

/// The type of an index into the [AREA_SIZES] array
/// This is not usize because we can store this as a single byte
type AreaIndex = u8;
pub type AreaIndex = u8;

// TODO danlaine: have type for index in AREA_SIZES
// Implement try_into() for it.
Expand Down Expand Up @@ -483,7 +483,7 @@ impl Version {
}
}

type FreeLists = [Option<LinearAddress>; NUM_AREA_SIZES];
pub type FreeLists = [Option<LinearAddress>; NUM_AREA_SIZES];

/// Persisted metadata for a [NodeStore].
/// The [NodeStoreHeader] is at the start of the LinearStore.
Expand Down

0 comments on commit 78f8af5

Please sign in to comment.