Skip to content

Commit

Permalink
chore(sidecar): rm unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jan 29, 2025
1 parent c8e04c3 commit 195faa6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 37 deletions.
31 changes: 2 additions & 29 deletions bolt-sidecar/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions bolt-sidecar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,20 @@ axum = { version = "0.8.2", features = ["macros", "ws"] }
axum-extra = { version = "0.10.0", features = ["typed-header"] }
tower-http = { version = "0.5.2", features = ["timeout"] }
http-body-util = "0.1.2"
rustls = "0.23.21"
reqwest = "0.12"
tower = "0.5.1"

# tokio
tokio = { version = "1", features = ["full"] }
tokio-retry = "0.3.0"
tokio-tungstenite = "0.24.0"
tokio-stream = "0.1.17"
tokio-retry = "0.3.0"
futures = "0.3"

# crypto
blst = "0.3.12"
tree_hash = "0.9"
tree_hash_derive = "0.8"
secp256k1 = { version = "0.29.0", features = ["rand"] }
ssz_rs = { git = "https://github.com/ralexstokes/ssz-rs", rev = "ec3073e" }
ethereum_ssz = "0.8.2"

# alloy
alloy = { version = "0.9.2", features = ["full", "provider-trace-api", "rpc-types-beacon"] }
Expand All @@ -48,7 +44,6 @@ alloy-provider = { version = "0.9.2", default-features = false, features = ["eng

# reth
reth-primitives = { git = "https://github.com/paradigmxyz/reth", version = "1.1.5" }
reth-primitives-traits = { git = "https://github.com/paradigmxyz/reth", version = "1.1.5" }

# commit-boost
cb-common = { git = "https://github.com/Commit-Boost/commit-boost-client", tag = "v0.5.0" }
Expand All @@ -68,7 +63,6 @@ serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.137"
parking_lot = "0.12.1"
async-trait = "0.1.85"
bytes = "1.6.0"
hex = "0.4.3"

# utils
Expand All @@ -80,6 +74,7 @@ dotenvy = "0.15.7"
regex = "1.10.5"
jsonwebtoken = "9.3.0"
derive_more = "1.0.0"
rustls = "0.23.21"

# tracing
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "fmt"] }
Expand Down
3 changes: 2 additions & 1 deletion bolt-sidecar/src/api/commitments/firewall/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ mod tests {
use std::{net::SocketAddr, ops::ControlFlow, time::Duration};

use axum::{
body::Bytes,
extract::{
ws::{CloseFrame, Message, Utf8Bytes, WebSocket},
ConnectInfo, WebSocketUpgrade,
Expand All @@ -269,7 +270,7 @@ mod tests {
headers::{authorization::Bearer, Authorization, UserAgent},
TypedHeader,
};
use bytes::Bytes;
// use bytes::Bytes;
use futures::{FutureExt, SinkExt, StreamExt};
use reqwest::StatusCode;
use serde::Serialize;
Expand Down
5 changes: 5 additions & 0 deletions bolt-sidecar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#![warn(missing_debug_implementations, missing_docs, rustdoc::all)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]

// Manually silence "rustls" crate being unused
#[allow(unused_extern_crates)]
extern crate rustls;

/// All APIs in use by the sidecar.
pub mod api;
Expand Down

0 comments on commit 195faa6

Please sign in to comment.