From 0937b95c337a8f0f34c77022dc4ef2da7ab49c3b Mon Sep 17 00:00:00 2001 From: Niklas Adofsson Date: Wed, 19 Sep 2018 08:46:08 +0200 Subject: [PATCH] Remove unused dependencies 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 88a61896e4d..5c2384318d1 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)", "smallvec 0.4.5 (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 3d0e21cbe6e..37123f90ff5 100644 --- a/ethcore/sync/Cargo.toml +++ b/ethcore/sync/Cargo.toml @@ -17,24 +17,18 @@ 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" smallvec = { version = "0.4", features = ["heapsizeof"] } parking_lot = "0.6" trace-time = "0.1" -ipnetwork = "0.12.6" [dev-dependencies] ethcore-io = { path = "../../util/io", features = ["mio"] } @@ -42,3 +36,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 9fb7da99053..b44b49b512f 100644 --- a/ethcore/sync/src/lib.rs +++ b/ethcore/sync/src/lib.rs @@ -30,18 +30,13 @@ 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 smallvec; 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;