From 4d0e05a8c16b3cb1582f422d8632f1478753c067 Mon Sep 17 00:00:00 2001 From: debris Date: Tue, 5 Sep 2017 13:08:32 +0200 Subject: [PATCH] cleanup util dependencies --- Cargo.lock | 4 ---- util/Cargo.toml | 7 +------ util/src/lib.rs | 4 ---- util/src/trie/standardmap.rs | 2 -- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ea9a12fa6..eaa563541 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -792,7 +792,6 @@ dependencies = [ name = "ethcore-util" version = "1.8.0" dependencies = [ - "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "clippy 0.0.103 (registry+https://github.com/rust-lang/crates.io-index)", "elastic-array 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -807,15 +806,12 @@ dependencies = [ "log 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", "lru-cache 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "rlp 0.2.0", "rocksdb 0.4.5 (git+https://github.com/paritytech/rust-rocksdb)", - "rust-crypto 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-hex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "target_info 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", "tiny-keccak 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "triehash 0.1.0", "vergen 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/util/Cargo.toml b/util/Cargo.toml index e4e95bad7..e0ab5ff44 100644 --- a/util/Cargo.toml +++ b/util/Cargo.toml @@ -11,11 +11,8 @@ build = "build.rs" log = "0.3" env_logger = "0.4" rustc-hex = "1.0" -rand = "0.3.12" -time = "0.1.34" rocksdb = { git = "https://github.com/paritytech/rust-rocksdb" } eth-secp256k1 = { git = "https://github.com/paritytech/rust-secp256k1" } -rust-crypto = "0.2.34" elastic-array = "0.9" rlp = { path = "rlp" } heapsize = "0.4" @@ -23,11 +20,9 @@ hash = { path = "hash" } clippy = { version = "0.0.103", optional = true} ethcore-devtools = { path = "../devtools" } libc = "0.2.7" -vergen = "0.1" target_info = "0.1" ethcore-bigint = { path = "bigint", features = ["heapsizeof"] } parking_lot = "0.4" -ansi_term = "0.9" tiny-keccak= "1.0" ethcore-bloom-journal = { path = "bloom" } regex = "0.2" @@ -41,5 +36,5 @@ dev = ["clippy"] final = [] [build-dependencies] -vergen = "*" +vergen = "0.1" rustc_version = "0.1.0" diff --git a/util/src/lib.rs b/util/src/lib.rs index 025e03286..56e20da1a 100644 --- a/util/src/lib.rs +++ b/util/src/lib.rs @@ -88,19 +88,15 @@ //! ``` extern crate rustc_hex; -extern crate rand; extern crate rocksdb; extern crate env_logger; -extern crate crypto as rcrypto; extern crate secp256k1; extern crate elastic_array; -extern crate time; extern crate ethcore_devtools as devtools; extern crate libc; extern crate target_info; extern crate ethcore_bigint as bigint; extern crate parking_lot; -extern crate ansi_term; extern crate tiny_keccak; extern crate rlp; extern crate regex; diff --git a/util/src/trie/standardmap.rs b/util/src/trie/standardmap.rs index 9da8bde74..866dc6e0e 100644 --- a/util/src/trie/standardmap.rs +++ b/util/src/trie/standardmap.rs @@ -15,8 +15,6 @@ // along with Parity. If not, see . //! Key-value datastore with a modified Merkle tree. -extern crate rand; - use keccak::keccak; use bytes::*; use bigint::hash::*;