unify hash macro by renaming it to `construct_hash`

This commit is contained in:
debris 2017-11-14 15:38:09 +01:00
parent c3b2b5cfb2
commit 91b87cd91e
2 changed files with 11 additions and 1 deletions

View File

@ -16,6 +16,9 @@ byteorder = { version = "1", default-features = false }
heapsize = { version = "0.4", optional = true }
rustc-hex = { version = "1.0", optional = true }
[dev-dependencies]
crunchy = "0.1.5"
[features]
std = ["rustc-hex"]
heapsizeof = ["heapsize"]

View File

@ -6,9 +6,16 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[cfg(feature="std")]
extern crate core;
#[macro_use]
extern crate crunchy;
#[macro_use]
extern crate uint;
use uint::U256;
construct_uint!(U256, 32);
fn main() {
// Example modular arithmetic using bigint U256 primitives