Skip to content

Commit

Permalink
fix: remove unused deps (MystenLabs#7959)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqvq authored Feb 2, 2023
1 parent b33015b commit 57d89e5
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 55 deletions.
29 changes: 0 additions & 29 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion crates/mysten-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ tracing = "0.1"
scopeguard = "1"
prometheus = "0.13"
once_cell = "1"
tokio = { workspace = true }
tap = "1.0"
dashmap = "5.4.0"
uuid = { version = "1.1.2", features = ["v4", "fast-rng"]}
Expand Down
3 changes: 1 addition & 2 deletions crates/sui-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ narwhal-executor = { path = "../../narwhal/executor" }
narwhal-node = { path = "../../narwhal/node" }
narwhal-types = { path = "../../narwhal/types" }
narwhal-worker = { path = "../../narwhal/worker" }
narwhal-test-utils = { path = "../../narwhal/test-utils" }
telemetry-subscribers.workspace = true
typed-store.workspace = true
typed-store-derive.workspace = true
Expand All @@ -72,7 +71,6 @@ num_cpus = "1.14.0"

sui-simulator = { path = "../sui-simulator" }
sui-macros = { path = "../sui-macros" }
reqwest = { version = "0.11.13", features = ["json"] }

[dev-dependencies]
clap = { version = "3.2.17", features = ["derive"] }
Expand All @@ -81,6 +79,7 @@ more-asserts="0.3.1"
serde-reflection = "0.3.6"
serde_yaml = "0.8.26"
pretty_assertions = "1.2.1"
narwhal-test-utils = { path = "../../narwhal/test-utils" }

[target.'cfg(not(target_env = "msvc"))'.dev-dependencies]
pprof = { version = "0.11.0", features = ["cpp", "frame-pointer"] }
Expand Down
1 change: 0 additions & 1 deletion crates/sui-framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ better_any = "0.1.1"
bcs = "0.1.4"
linked-hash-map = "0.5.6"
smallvec = "1.9.0"
num_enum = "0.5.7"
once_cell = "1.16"
curve25519-dalek-ng = "4.1.1"
bincode = "1.3.3"
Expand Down
1 change: 0 additions & 1 deletion crates/sui-indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ tracing = "0.1.36"
tokio = { workspace = true, features = ["full"] }

narwhal-network = { path = "../../narwhal/network" }
sui = { path = "../sui" }
sui-core = { path = "../sui-core" }
sui-config = { path = "../sui-config" }
sui-types = { path = "../sui-types" }
Expand Down
5 changes: 1 addition & 4 deletions crates/sui-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,16 @@ move-vm-types.workspace = true

narwhal-config = { path = "../../narwhal/config" }
narwhal-crypto = { path = "../../narwhal/crypto" }
narwhal-executor = { path = "../../narwhal/executor" }
sui-cost-tables = { path = "../sui-cost-tables"}
sui-protocol-constants = { path = "../sui-protocol-constants" }

fastcrypto = { workspace = true, features = ["copy_key"] }



typed-store.workspace = true
workspace-hack = { version = "0.1", path = "../workspace-hack" }
proptest = "1.0.0"
derive_more = "0.99.17"

[dev-dependencies]
bincode = "1.3.3"
test-utils = { path = "../test-utils" }
proptest = "1.0.0"
7 changes: 0 additions & 7 deletions crates/sui-types/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use move_core_types::{
vm_status::{StatusCode, StatusType},
};
pub use move_vm_runtime::move_vm::MoveVM;
use narwhal_executor::SubscriberError;
use serde::{Deserialize, Serialize};
use std::{collections::BTreeMap, fmt::Debug};
use strum_macros::{AsRefStr, IntoStaticStr};
Expand Down Expand Up @@ -575,12 +574,6 @@ impl From<VMError> for SuiError {
}
}

impl From<SubscriberError> for SuiError {
fn from(error: SubscriberError) -> Self {
SuiError::HandleConsensusTransactionFailure(error.to_string())
}
}

impl From<Status> for SuiError {
fn from(status: Status) -> Self {
let result = bincode::deserialize::<SuiError>(status.details());
Expand Down
2 changes: 1 addition & 1 deletion crates/typed-store-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ proc-macro = true
proc-macro2 = "1.0.47"
quote = "1.0.23"
syn = { version = "1.0.104", features = ["full"] }
typed-store = { path = "../typed-store" }
workspace-hack = { version = "0.1", path = "../workspace-hack" }


Expand All @@ -24,3 +23,4 @@ eyre = "0.6.8"
rocksdb = { version = "0.19.0", features = ["snappy", "lz4", "zstd", "zlib", "multi-threaded-cf"], default-features = false }
tempfile = "3.3.0"
tokio = { workspace = true, features = ["test-util"] }
typed-store = { path = "../typed-store" }
3 changes: 0 additions & 3 deletions crates/workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ num-rational = { version = "0.4", default-features = false, features = ["num-big
num-traits-c65f7effa3be6d31 = { package = "num-traits", version = "0.1", default-features = false }
num-traits-6f8ce4dd05d13bba = { package = "num-traits", version = "0.2", features = ["i128", "libm"] }
num_cpus = { version = "1", default-features = false }
num_enum = { version = "0.5" }
number_prefix = { version = "0.4" }
object = { version = "0.30", default-features = false, features = ["archive", "elf", "macho", "pe", "read_core", "unaligned"] }
oid-registry = { version = "0.6", features = ["crypto", "x509"] }
Expand Down Expand Up @@ -1072,8 +1071,6 @@ num-rational = { version = "0.4", default-features = false, features = ["num-big
num-traits-c65f7effa3be6d31 = { package = "num-traits", version = "0.1", default-features = false }
num-traits-6f8ce4dd05d13bba = { package = "num-traits", version = "0.2", features = ["i128", "libm"] }
num_cpus = { version = "1", default-features = false }
num_enum = { version = "0.5" }
num_enum_derive = { version = "0.5", default-features = false, features = ["std"] }
number_prefix = { version = "0.4" }
object = { version = "0.30", default-features = false, features = ["archive", "elf", "macho", "pe", "read_core", "unaligned"] }
oid-registry = { version = "0.6", features = ["crypto", "x509"] }
Expand Down
2 changes: 1 addition & 1 deletion narwhal/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ mockall = "0.11.2"

mysten-metrics = { path = "../../crates/mysten-metrics" }
store = { path = "../../crates/typed-store", package = "typed-store" }
telemetry-subscribers = { path = "../../crates/telemetry-subscribers"}
workspace-hack = { version = "0.1", path = "../../crates/workspace-hack" }

anemo.workspace = true
Expand All @@ -51,3 +50,4 @@ primary = { path = "../primary", package = "narwhal-primary" }
node = { path = "../node", package = "narwhal-node" }
test-utils = { path = "../test-utils", package = "narwhal-test-utils" }
types = { path = "../types", package = "narwhal-types" }
telemetry-subscribers = { path = "../../crates/telemetry-subscribers"}
3 changes: 1 addition & 2 deletions narwhal/primary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ edition = "2021"
[dependencies]
anyhow = "1.0.65"
arc-swap = "1.5.1"
async-recursion = "1.0.0"
async-trait = "0.1.61"
backoff = { version = "0.4", features = ["futures", "futures-core", "pin-project-lite", "tokio", "tokio_1"] }
base64 = "0.13.0"
Expand Down Expand Up @@ -44,7 +43,6 @@ types = { path = "../types", package = "narwhal-types" }
storage = { path = "../storage", package = "narwhal-storage" }
store = { path = "../../crates/typed-store", package = "typed-store" }
mysten-network.workspace = true
telemetry-subscribers = { path = "../../crates/telemetry-subscribers"}
workspace-hack = { version = "0.1", path = "../../crates/workspace-hack" }

mysten-metrics = { path = "../../crates/mysten-metrics" }
Expand All @@ -70,6 +68,7 @@ tracing-test = "0.2.3"
worker = { path = "../worker", package = "narwhal-worker" }
storage = { path = "../storage", package = "narwhal-storage" }
reqwest = { version = "0.11.13", features = ["json"] }
telemetry-subscribers = { path = "../../crates/telemetry-subscribers"}

[features]
benchmark = []
5 changes: 2 additions & 3 deletions narwhal/worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ config = { path = "../config", package = "narwhal-config" }
fastcrypto.workspace = true
crypto = { path = "../crypto", package = "narwhal-crypto" }
network = { path = "../network", package = "narwhal-network" }
primary = { path = "../primary", package = "narwhal-primary" }
types = { path = "../types", package = "narwhal-types" }
storage = { path = "../storage", package = "narwhal-storage" }
prometheus = "0.13.3"
store = { path = "../../crates/typed-store", package = "typed-store" }
mysten-network = { path = "../../crates/mysten-network"}
telemetry-subscribers = { path = "../../crates/telemetry-subscribers"}

mysten-metrics = { path = "../../crates/mysten-metrics" }

Expand All @@ -53,6 +50,8 @@ reqwest = { version = "0.11.13", features = ["json"] }
node = { path = "../node", package = "narwhal-node" }
consensus = { path = "../consensus", package = "narwhal-consensus" }
primary = { path = "../primary", package = "narwhal-primary" }
telemetry-subscribers = { path = "../../crates/telemetry-subscribers"}
storage = { path = "../storage", package = "narwhal-storage" }

[features]
benchmark = []
Expand Down

0 comments on commit 57d89e5

Please sign in to comment.