Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re: Remove unused dependencies for near-network #5508

Merged
merged 9 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Cargo.lock

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

16 changes: 5 additions & 11 deletions chain/network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,42 @@ edition = "2021"

[dependencies]
actix = "=0.11.0-beta.2"
borsh = { version = "0.9", features = ["rc"]}
byteorder = "1.2"
borsh = { version = "0.9", features = ["rc"] }
bytes = "1"
bytesize = "1.1"
cached = "0.23"
chrono = { version = "0.4.4", features = ["serde"] }
conqueue = "0.4.0"
futures = "0.3"
lazy_static = "1.4"
near-rust-allocator-proxy = "0.3.0"
once_cell = "1.5.2"
rand = "0.7"
serde = { version = "1", features = ["derive", "rc", "alloc"], optional=true }
strum = { version = "0.20", features = ["derive"] }
tokio = { version = "1.1", features = ["full"] }
tokio = { version = "1.1", features = ["net"] }
tokio-stream = { version = "0.1.2", features = ["net"] }
tokio-util = { version = "0.6", features = ["codec"] }
tracing = "0.1.13"
deepsize = { version = "0.2.0", optional = true }

delay-detector = { path = "../../tools/delay_detector", optional = true}
delay-detector = { path = "../../tools/delay_detector", optional = true }
near-crypto = { path = "../../core/crypto" }
near-metrics = { path = "../../core/metrics" }
near-network-primitives = { path = "../network-primitives" }
near-performance-metrics = { path = "../../utils/near-performance-metrics" }
near-performance-metrics-macros = { path = "../../utils/near-performance-metrics-macros" }
near-primitives = { path = "../../core/primitives" }
near-rate-limiter = { path = "../../utils/near-rate-limiter" }
near-stable-hasher = { path = "../../utils/near-stable-hasher" }
near-stable-hasher = { path = "../../utils/near-stable-hasher", optional = true }
near-store = { path = "../../core/store" }

[dev-dependencies]
bencher = "0.1.5"
near-actix-test-utils = { path = "../../test-utils/actix-test-utils" }
near-chain = { path = "../chain" }
near-logger-utils = {path = "../../test-utils/logger"}
tempfile = "3"

[features]
delay_detector = ["delay-detector"]
performance_stats = ["near-performance-metrics/performance_stats"]
protocol_feature_routing_exchange_algorithm = ["near-primitives/protocol_feature_routing_exchange_algorithm"]
protocol_feature_routing_exchange_algorithm = ["near-primitives/protocol_feature_routing_exchange_algorithm", "near-stable-hasher"]
sandbox = ["near-network-primitives/sandbox"]
test_features = ["near-network-primitives/test_features", "serde"]
deepsize_feature = ["deepsize", "near-primitives/deepsize_feature", "near-crypto/deepsize_feature", "near-network-primitives/deepsize_feature"]
Expand Down
2 changes: 1 addition & 1 deletion chain/network/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub fn wait_or_panic(max_wait_ms: u64) {
///
/// # Example
///
/// ```
/// ```rust,ignore
/// use actix::{System, Actor};
/// use near_network::test_utils::WaitOrTimeoutActor;
/// use std::time::{Instant, Duration};
Expand Down