Remove ethcore::common re-export module (#2792)
* no longer export action_params * remove transaction, header, receipt re-rexports from common * remove env_info and builtins re-exports from common * remove everything but util export from common * replace common usages with util, remove module * add a prelude module for ethcore-bigint
This commit is contained in:
committed by
Gav Wood
parent
edbd667696
commit
0fedc27332
@@ -24,3 +24,16 @@ extern crate rustc_serialize;
|
||||
|
||||
pub mod uint;
|
||||
pub mod hash;
|
||||
|
||||
/// A prelude module for re-exporting all the types defined in this crate.
|
||||
///
|
||||
/// ```rust
|
||||
/// use ethcore_bigint::prelude::*;
|
||||
///
|
||||
/// let x: U256 = U256::zero();
|
||||
/// let y = x + 1.into();
|
||||
/// ```
|
||||
pub mod prelude {
|
||||
pub use ::uint::*;
|
||||
pub use ::hash::*;
|
||||
}
|
||||
Reference in New Issue
Block a user