2019-01-07 11:33:07 +01:00
|
|
|
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of Parity Ethereum.
|
2016-02-05 13:40:41 +01:00
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is free software: you can redistribute it and/or modify
|
2016-02-05 13:40:41 +01:00
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is distributed in the hope that it will be useful,
|
2016-02-05 13:40:41 +01:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2019-01-07 11:33:07 +01:00
|
|
|
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
2016-02-05 13:40:41 +01:00
|
|
|
|
2019-01-04 14:05:46 +01:00
|
|
|
#![warn(missing_docs, unused_extern_crates)]
|
2016-01-19 11:10:38 +01:00
|
|
|
|
2016-02-02 15:29:53 +01:00
|
|
|
//! Ethcore library
|
|
|
|
|
2019-07-08 23:01:47 +02:00
|
|
|
extern crate account_state;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ansi_term;
|
2019-08-13 12:33:34 +02:00
|
|
|
extern crate client_traits;
|
2017-07-12 13:09:17 +02:00
|
|
|
extern crate common_types as types;
|
2019-08-15 17:59:22 +02:00
|
|
|
extern crate engine;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ethcore_blockchain as blockchain;
|
2019-01-17 16:43:08 +01:00
|
|
|
extern crate ethcore_call_contract as call_contract;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ethcore_db as db;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate ethcore_io as io;
|
2018-01-11 17:49:10 +01:00
|
|
|
extern crate ethcore_miner;
|
2018-01-10 13:35:18 +01:00
|
|
|
extern crate ethereum_types;
|
2019-08-22 18:25:49 +02:00
|
|
|
extern crate executive_state;
|
2019-04-12 13:36:49 +02:00
|
|
|
extern crate futures;
|
2019-02-20 19:09:34 +01:00
|
|
|
extern crate hash_db;
|
2017-03-24 14:02:04 +01:00
|
|
|
extern crate itertools;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate journaldb;
|
|
|
|
extern crate keccak_hash as hash;
|
2018-06-20 15:13:07 +02:00
|
|
|
extern crate kvdb;
|
2019-08-13 12:33:34 +02:00
|
|
|
extern crate machine;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate memory_cache;
|
|
|
|
extern crate parity_bytes as bytes;
|
2017-09-02 20:09:13 +02:00
|
|
|
extern crate parking_lot;
|
2019-02-20 19:09:34 +01:00
|
|
|
extern crate trie_db as trie;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate patricia_trie_ethereum as ethtrie;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate rand;
|
2017-09-10 18:03:35 +02:00
|
|
|
extern crate rayon;
|
2019-10-03 15:15:25 +02:00
|
|
|
extern crate registrar;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate rlp;
|
2019-09-11 17:35:50 +02:00
|
|
|
extern crate rustc_hex;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate serde;
|
2019-09-03 11:29:25 +02:00
|
|
|
extern crate snapshot;
|
2019-08-23 15:32:58 +02:00
|
|
|
extern crate spec;
|
2019-07-08 23:01:47 +02:00
|
|
|
extern crate state_db;
|
2019-07-08 18:17:48 +02:00
|
|
|
extern crate trace;
|
2019-08-28 10:09:42 +02:00
|
|
|
extern crate trie_vm_factories;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate triehash_ethereum as triehash;
|
|
|
|
extern crate unexpected;
|
2017-07-29 17:12:07 +02:00
|
|
|
extern crate using_queue;
|
2019-08-28 10:09:42 +02:00
|
|
|
extern crate verification;
|
2017-08-01 12:37:57 +02:00
|
|
|
extern crate vm;
|
2019-01-04 14:05:46 +01:00
|
|
|
|
2019-06-03 15:36:21 +02:00
|
|
|
#[cfg(test)]
|
2019-09-12 22:56:59 +02:00
|
|
|
extern crate account_db;
|
2019-02-07 14:34:24 +01:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate ethcore_accounts as accounts;
|
2019-09-12 22:56:59 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate stats;
|
|
|
|
|
2019-01-04 14:05:46 +01:00
|
|
|
#[cfg(feature = "stratum")]
|
|
|
|
extern crate ethcore_stratum;
|
2019-09-12 22:56:59 +02:00
|
|
|
|
|
|
|
#[cfg(feature = "stratum")]
|
2019-08-23 15:32:58 +02:00
|
|
|
extern crate ethash;
|
|
|
|
|
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2019-10-23 13:03:46 +02:00
|
|
|
extern crate parity_crypto;
|
2019-08-23 15:32:58 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
|
|
|
extern crate ethjson;
|
2019-08-28 10:09:42 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
|
|
|
extern crate kvdb_memorydb;
|
2019-01-08 15:07:20 +01:00
|
|
|
#[cfg(any(test, feature = "kvdb-rocksdb"))]
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate kvdb_rocksdb;
|
2019-09-12 22:56:59 +02:00
|
|
|
#[cfg(feature = "json-tests")]
|
2019-08-22 18:25:49 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
2019-09-12 22:56:59 +02:00
|
|
|
#[cfg(any(test, feature = "json-tests"))]
|
2019-08-22 18:25:49 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate macros;
|
2019-08-23 15:32:58 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
|
|
|
extern crate pod;
|
2019-01-08 15:07:20 +01:00
|
|
|
#[cfg(any(test, feature = "blooms-db"))]
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate blooms_db;
|
2019-09-12 22:56:59 +02:00
|
|
|
#[cfg(feature = "env_logger")]
|
2019-02-07 14:34:24 +01:00
|
|
|
extern crate env_logger;
|
|
|
|
#[cfg(test)]
|
2019-06-28 10:27:59 +02:00
|
|
|
extern crate serde_json;
|
2019-08-28 10:09:42 +02:00
|
|
|
#[cfg(any(test, feature = "tempdir"))]
|
|
|
|
extern crate tempdir;
|
2018-06-26 09:03:38 +02:00
|
|
|
|
2018-04-19 11:52:54 +02:00
|
|
|
#[macro_use]
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate log;
|
2016-09-01 13:36:32 +02:00
|
|
|
#[macro_use]
|
2018-02-23 19:49:08 +01:00
|
|
|
extern crate trace_time;
|
2018-04-13 17:34:27 +02:00
|
|
|
|
2017-07-12 13:09:17 +02:00
|
|
|
#[cfg_attr(test, macro_use)]
|
|
|
|
extern crate evm;
|
2016-07-09 11:23:06 +02:00
|
|
|
|
2019-02-11 18:08:12 +01:00
|
|
|
#[cfg(all(test, feature = "price-info"))]
|
|
|
|
extern crate fetch;
|
|
|
|
|
|
|
|
#[cfg(all(test, feature = "price-info"))]
|
|
|
|
extern crate parity_runtime;
|
|
|
|
|
2016-02-02 15:29:53 +01:00
|
|
|
pub mod block;
|
|
|
|
pub mod client;
|
2016-05-31 19:52:53 +02:00
|
|
|
pub mod miner;
|
2016-01-09 17:15:55 +01:00
|
|
|
|
2016-02-15 00:51:50 +01:00
|
|
|
#[cfg(test)]
|
2016-02-02 22:50:41 +01:00
|
|
|
mod tests;
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(feature = "json-tests")]
|
2018-06-25 11:21:45 +02:00
|
|
|
pub mod json_tests;
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2018-06-04 15:58:44 +02:00
|
|
|
pub mod test_helpers;
|