From 3f95a62e4f8e426a99828bb585e93fc5e10bbba6 Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Tue, 25 Sep 2018 14:27:27 +0100 Subject: [PATCH] Remove unused dependencies (#9589) Remove unused dependencies and move `rustc-hex` to tests because it is only used in tests --- Cargo.lock | 5 ----- ethcore/sync/Cargo.toml | 7 +------ ethcore/sync/src/lib.rs | 5 ----- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e4eaf77cd..69773af63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -875,12 +875,8 @@ dependencies = [ "ethereum-types 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "ethkey 0.3.0", "fastmap 0.1.0", - "hashdb 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "ipnetwork 0.12.8 (registry+https://github.com/rust-lang/crates.io-index)", "keccak-hash 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "keccak-hasher 0.1.1", - "kvdb 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "kvdb-memorydb 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", "macros 0.1.0", @@ -889,7 +885,6 @@ dependencies = [ "rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "rlp 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-hex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "trace-time 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "triehash-ethereum 0.2.0", ] diff --git a/ethcore/sync/Cargo.toml b/ethcore/sync/Cargo.toml index 37c1d61c7..b5224cb00 100644 --- a/ethcore/sync/Cargo.toml +++ b/ethcore/sync/Cargo.toml @@ -17,23 +17,17 @@ ethcore-light = { path = "../light" } ethcore-transaction = { path = "../transaction" } ethcore = { path = ".." } ethereum-types = "0.4" -hashdb = "0.2.1" fastmap = { path = "../../util/fastmap" } rlp = { version = "0.2.4", features = ["ethereum"] } -rustc-hex = "1.0" keccak-hash = "0.1" -keccak-hasher = { path = "../../util/keccak-hasher" } triehash-ethereum = {version = "0.2", path = "../../util/triehash-ethereum" } -kvdb = "0.1" macros = { path = "../../util/macros" } log = "0.4" env_logger = "0.5" rand = "0.4" heapsize = "0.4" -semver = "0.9" parking_lot = "0.6" trace-time = "0.1" -ipnetwork = "0.12.6" [dev-dependencies] ethcore-io = { path = "../../util/io", features = ["mio"] } @@ -41,3 +35,4 @@ ethkey = { path = "../../ethkey" } kvdb-memorydb = "0.1" ethcore-private-tx = { path = "../private-tx" } ethcore = { path = "..", features = ["test-helpers"] } +rustc-hex = "1.0" diff --git a/ethcore/sync/src/lib.rs b/ethcore/sync/src/lib.rs index e35e9beda..294ba0cd7 100644 --- a/ethcore/sync/src/lib.rs +++ b/ethcore/sync/src/lib.rs @@ -30,17 +30,12 @@ extern crate ethcore_transaction as transaction; extern crate ethcore; extern crate ethereum_types; extern crate env_logger; -extern crate hashdb; extern crate fastmap; extern crate rand; -extern crate semver; extern crate parking_lot; extern crate rlp; -extern crate ipnetwork; extern crate keccak_hash as hash; -extern crate keccak_hasher; extern crate triehash_ethereum; -extern crate kvdb; extern crate ethcore_light as light;