prevent compilation on 16-bit targets so we can use `usize` and assume it is 32 bits

This commit is contained in:
Andrew Poelstra 2019-06-05 13:59:44 +00:00
parent b734d6488a
commit 87e7ebcf1b
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ extern crate secp256k1;
#[cfg(all(test, feature = "unstable"))] extern crate test;
#[cfg(feature="bitcoinconsensus")] extern crate bitcoinconsensus;
#[cfg(target_pointer_width = "16")]
compile_error!("rust-bitcoin cannot be used on 16-bit architectures");
#[cfg(test)]
#[macro_use]
mod test_macros;