units: Remove compile time pointer width check
The `units` crate does not contain consensus logic and since our requirement to only support 32-bit and 64-bit machines is due to consensus logic we do not need to enforce the `target_pointer_width` in the `units` crate. Remove the compile time check on pointer width from the `units` crate.
This commit is contained in:
parent
8c0de95749
commit
2300b285ef
|
@ -14,13 +14,6 @@
|
||||||
#![allow(clippy::needless_borrows_for_generic_args)] // https://github.com/rust-lang/rust-clippy/issues/12454
|
#![allow(clippy::needless_borrows_for_generic_args)] // https://github.com/rust-lang/rust-clippy/issues/12454
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
// Disable 16-bit support at least for now as we can't guarantee it yet.
|
|
||||||
#[cfg(target_pointer_width = "16")]
|
|
||||||
compile_error!(
|
|
||||||
"rust-bitcoin currently only supports architectures with pointers wider than 16 bits, let us
|
|
||||||
know if you want 16-bit support. Note that we do NOT guarantee that we will implement it!"
|
|
||||||
);
|
|
||||||
|
|
||||||
#[cfg(feature = "alloc")]
|
#[cfg(feature = "alloc")]
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue