prevent compilation on 16-bit targets so we can use `usize` and assume it is 32 bits
This commit is contained in:
parent
b734d6488a
commit
87e7ebcf1b
|
@ -54,6 +54,9 @@ extern crate secp256k1;
|
||||||
#[cfg(all(test, feature = "unstable"))] extern crate test;
|
#[cfg(all(test, feature = "unstable"))] extern crate test;
|
||||||
#[cfg(feature="bitcoinconsensus")] extern crate bitcoinconsensus;
|
#[cfg(feature="bitcoinconsensus")] extern crate bitcoinconsensus;
|
||||||
|
|
||||||
|
#[cfg(target_pointer_width = "16")]
|
||||||
|
compile_error!("rust-bitcoin cannot be used on 16-bit architectures");
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod test_macros;
|
mod test_macros;
|
||||||
|
|
Loading…
Reference in New Issue