unify hash macro by renaming it to `construct_hash`
This commit is contained in:
parent
c3b2b5cfb2
commit
91b87cd91e
|
@ -16,6 +16,9 @@ byteorder = { version = "1", default-features = false }
|
||||||
heapsize = { version = "0.4", optional = true }
|
heapsize = { version = "0.4", optional = true }
|
||||||
rustc-hex = { version = "1.0", optional = true }
|
rustc-hex = { version = "1.0", optional = true }
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
crunchy = "0.1.5"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
std = ["rustc-hex"]
|
std = ["rustc-hex"]
|
||||||
heapsizeof = ["heapsize"]
|
heapsizeof = ["heapsize"]
|
||||||
|
|
|
@ -6,9 +6,16 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[cfg(feature="std")]
|
||||||
|
extern crate core;
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
|
extern crate crunchy;
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
extern crate uint;
|
extern crate uint;
|
||||||
|
|
||||||
use uint::U256;
|
construct_uint!(U256, 32);
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Example modular arithmetic using bigint U256 primitives
|
// Example modular arithmetic using bigint U256 primitives
|
||||||
|
|
Loading…
Reference in New Issue