ethcore_bigint/
lib.rs

1// Copyright 2015-2017 Parity Technologies
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9//! Efficient large, fixed-size big integers and hashes.
10
11#![cfg_attr(asm_available, feature(asm))]
12
13extern crate rand;
14extern crate rustc_hex;
15extern crate libc;
16extern crate plain_hasher;
17
18#[cfg(feature="heapsizeof")]
19#[macro_use]
20extern crate heapsize;
21
22pub extern crate bigint as uint;
23pub mod hash;
24
25/// A prelude module for re-exporting all the types defined in this crate.
26///
27/// ```rust
28/// use ethcore_bigint::prelude::*;
29///
30/// let x: U256 = U256::zero();
31/// let y = x + 1.into();
32/// ```
33pub mod prelude {
34	pub use ::uint::*;
35	pub use ::hash::*;
36}