[ethcore]: cleanup dependencies (#11043)

This commit is contained in:
Niklas Adolfsson
2019-09-12 22:56:59 +02:00
committed by David
parent ad9a53f486
commit eb81168674
4 changed files with 12 additions and 58 deletions

View File

@@ -17,41 +17,6 @@
#![warn(missing_docs, unused_extern_crates)]
//! Ethcore library
//!
//! ### Rust version:
//! - nightly
//!
//! ### Supported platforms:
//! - OSX
//! - Linux
//!
//! ### Building:
//!
//! - Ubuntu 14.04 and later:
//!
//! ```bash
//!
//! # install rustup
//! curl https://sh.rustup.rs -sSf | sh
//!
//! # download and build parity
//! git clone https://github.com/paritytech/parity-ethereum
//! cd parity
//! cargo build --release
//! ```
//!
//! - OSX:
//!
//! ```bash
//! # install rocksdb && rustup
//! brew update
//! curl https://sh.rustup.rs -sSf | sh
//!
//! # download and build parity
//! git clone https://github.com/paritytech/parity-ethereum
//! cd parity
//! cargo build --release
//! ```
extern crate account_state;
extern crate ansi_term;
@@ -95,16 +60,18 @@ extern crate verification;
extern crate vm;
#[cfg(test)]
extern crate rand_xorshift;
extern crate account_db;
#[cfg(test)]
extern crate ethcore_accounts as accounts;
#[cfg(test)]
extern crate stats;
#[cfg(feature = "stratum")]
extern crate ethcore_stratum;
#[cfg(any(test, feature = "stratum"))]
#[cfg(feature = "stratum")]
extern crate ethash;
#[cfg(any(test, feature = "test-helpers"))]
extern crate account_db;
#[cfg(any(test, feature = "test-helpers"))]
extern crate ethkey;
#[cfg(any(test, feature = "test-helpers"))]
@@ -113,19 +80,17 @@ extern crate ethjson;
extern crate kvdb_memorydb;
#[cfg(any(test, feature = "kvdb-rocksdb"))]
extern crate kvdb_rocksdb;
#[cfg(any(test, feature = "json-tests"))]
#[cfg(feature = "json-tests")]
#[macro_use]
extern crate lazy_static;
#[cfg(any(test, feature = "test-helpers"))]
#[cfg(any(test, feature = "json-tests"))]
#[macro_use]
extern crate macros;
#[cfg(test)]
extern crate null_engine;
#[cfg(any(test, feature = "test-helpers"))]
extern crate pod;
#[cfg(any(test, feature = "blooms-db"))]
extern crate blooms_db;
#[cfg(any(test, feature = "env_logger"))]
#[cfg(feature = "env_logger")]
extern crate env_logger;
#[cfg(test)]
extern crate serde_json;
@@ -137,8 +102,6 @@ extern crate ethabi_contract;
#[macro_use]
extern crate log;
#[macro_use]
extern crate rlp_derive;
#[macro_use]
extern crate trace_time;
#[cfg_attr(test, macro_use)]

View File

@@ -38,6 +38,7 @@ use client_traits::{
ImportExportBlocks, Tick, ImportBlock
};
use spec;
use stats;
use machine::executive::{Executive, TransactOptions};
use miner::{Miner, PendingOrdering, MinerService};
use account_state::{State, CleanupMode, backend};