separate trie from util and make its dependencies into libs:

* bytes
* hashdb
* memorydb
* nibbleslice
* nibblevec
This commit is contained in:
Hawstein
2017-09-07 02:47:45 +08:00
parent 79659bdc76
commit ade37be25b
182 changed files with 497 additions and 251 deletions

View File

@@ -24,7 +24,8 @@ use rustc_hex::FromHex;
use hash::{keccak, KECCAK_NULL_RLP};
use bigint::prelude::U256;
use bigint::hash::H256;
use util::{ToPretty, Address};
use util::Address;
use bytes::ToPretty;
use rlp::PayloadInfo;
use ethcore::service::ClientService;
use ethcore::client::{Mode, DatabaseCompactionProfile, VMType, BlockImportError, BlockChainClient, BlockId};

View File

@@ -25,7 +25,8 @@ use cli::{Args, ArgsError};
use hash::keccak;
use bigint::prelude::U256;
use bigint::hash::H256;
use util::{Bytes, version_data, Address};
use util::{version_data, Address};
use bytes::Bytes;
use util::journaldb::Algorithm;
use ansi_term::Colour;
use ethsync::{NetworkConfiguration, is_valid_node_url};

View File

@@ -31,7 +31,8 @@ use node_health::{SyncStatus, NodeHealth};
use rpc;
use rpc_apis::SignerService;
use parity_reactor;
use util::{Bytes, Address};
use util::Address;
use bytes::Bytes;
#[derive(Debug, PartialEq, Clone)]
pub struct Configuration {

View File

@@ -36,7 +36,7 @@ use number_prefix::{binary_prefix, Standalone, Prefixed};
use parity_rpc::{is_major_importing};
use parity_rpc::informant::RpcStats;
use bigint::hash::H256;
use util::Bytes;
use bytes::Bytes;
use parking_lot::{RwLock, Mutex};
/// Format byte counts to standard denominations.

View File

@@ -59,6 +59,7 @@ extern crate ethcore_light as light;
extern crate ethcore_logger;
extern crate ethcore_util as util;
extern crate ethcore_bigint as bigint;
extern crate ethcore_bytes as bytes;
extern crate ethcore_network as network;
extern crate ethkey;
extern crate ethsync;