Skip to content

Commit d735a88

Browse files
committed
Cleanup dependencies.
1 parent c528c29 commit d735a88

File tree

4 files changed

+5
-22
lines changed

4 files changed

+5
-22
lines changed

Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ ark-secp256k1 = "0.5"
4343
ark-serialize = { version = "0.5", features = ["derive"] }
4444
ark-std = { version = "0.5", default-features = false }
4545
arrayvec = "0.7.6"
46-
async-lock = "3.3"
4746
async-trait = "0.1"
4847
axum = "0.8.4"
4948
bimap = "0.6.3"
@@ -58,17 +57,14 @@ constant_time_eq = "0.4"
5857
criterion = "0.7"
5958
crossbeam-queue = "0.3.11"
6059
data-encoding = "2.6.0"
61-
derive_builder = "0.20"
6260
derive_more = { version = "2.0", features = ["full"] }
6361
digest = "0.10"
64-
dyn-clone = "1.0.17"
6562
ed25519-compact = "2.1.1"
6663
either = "1.13.0"
6764
ethereum_ssz = "0.9.0"
6865
futures = { version = "0.3", default-features = false, features = ["alloc"] }
6966
generic-array = { version = "0.14.7", features = ["serde", "zeroize"] }
7067
http = "1.3.1"
71-
multiaddr = "0.18.2"
7268
nohash-hasher = "0.2"
7369
parking_lot = "0.12.3"
7470
portpicker = "0.1.1"
@@ -84,7 +80,6 @@ serde_bytes = "0.11.15"
8480
serde_json = { version = "1.0" }
8581
serde_with = "3.12.0"
8682
sha2 = { version = "0.10", default-features = false }
87-
sha3 = "0.10.8"
8883
smallvec = "1.15.1"
8984
snow = "0.10.0"
9085
spongefish = { git = "https://github.com/arkworks-rs/spongefish.git", rev = "e9f7031", features = [
@@ -104,7 +99,6 @@ tracing = "0.1"
10499
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
105100
turmoil = "0.6.4"
106101
url = "2.5.4"
107-
vbs = "0.1"
108102
zeroize = { version = "1.8", features = ["zeroize_derive"] }
109103

110104
espresso-types = { git = "https://github.com/EspressoSystems/espresso-network.git" }

metrics/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ description = "Metrics API types"
44
version.workspace = true
55
edition.workspace = true
66
rust-version.workspace = true
7-
8-
[dependencies]
9-
dyn-clone = { workspace = true }

metrics/src/lib.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
1717
use std::fmt::Debug;
1818

19-
use dyn_clone::DynClone;
20-
2119
/// The metrics type.
22-
pub trait Metrics: Send + Sync + DynClone + Debug {
20+
pub trait Metrics: Send + Sync + Debug {
2321
/// Create a [`Counter`] with an optional `unit_label`.
2422
///
2523
/// The `unit_label` can be used to indicate what the unit of the value is, e.g. "kb" or
@@ -115,7 +113,7 @@ pub trait Metrics: Send + Sync + DynClone + Debug {
115113
/// ```text
116114
/// version{semver="0.1.0", rev="891c5baa5"} 1
117115
/// ```
118-
pub trait MetricsFamily<M>: Send + Sync + DynClone + Debug {
116+
pub trait MetricsFamily<M>: Send + Sync + Debug {
119117
/// Instantiate a metric in this family with a specific label vector.
120118
///
121119
/// The given values of `labels` are used to identify this metric within its family. It must
@@ -224,13 +222,13 @@ impl MetricsFamily<()> for NoMetrics {
224222
}
225223

226224
/// An ever-incrementing counter
227-
pub trait Counter: Send + Sync + Debug + DynClone {
225+
pub trait Counter: Send + Sync + Debug {
228226
/// Add a value to the counter
229227
fn add(&self, amount: usize);
230228
}
231229

232230
/// A gauge that stores the latest value.
233-
pub trait Gauge: Send + Sync + Debug + DynClone {
231+
pub trait Gauge: Send + Sync + Debug {
234232
/// Set the gauge value
235233
fn set(&self, amount: usize);
236234

@@ -239,16 +237,11 @@ pub trait Gauge: Send + Sync + Debug + DynClone {
239237
}
240238

241239
/// A histogram which will record a series of points.
242-
pub trait Histogram: Send + Sync + Debug + DynClone {
240+
pub trait Histogram: Send + Sync + Debug {
243241
/// Add a point to this histogram.
244242
fn add_point(&self, point: f64);
245243
}
246244

247-
dyn_clone::clone_trait_object!(Metrics);
248-
dyn_clone::clone_trait_object!(Gauge);
249-
dyn_clone::clone_trait_object!(Counter);
250-
dyn_clone::clone_trait_object!(Histogram);
251-
252245
#[cfg(test)]
253246
mod test {
254247
use std::{

timeboost/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ tower = { workspace = true }
5252
tower-http = { workspace = true }
5353
tracing = { workspace = true }
5454
url = { workspace = true }
55-
vbs = { workspace = true }
5655

5756
[dev-dependencies]
5857
portpicker = { workspace = true }

0 commit comments

Comments
 (0)