Skip to content

Commit 2300b28

Browse files
committed
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.
1 parent 8c0de95 commit 2300b28

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

units/src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
#![allow(clippy::needless_borrows_for_generic_args)] // https://github.com/rust-lang/rust-clippy/issues/12454
1515
#![no_std]
1616

17-
// Disable 16-bit support at least for now as we can't guarantee it yet.
18-
#[cfg(target_pointer_width = "16")]
19-
compile_error!(
20-
"rust-bitcoin currently only supports architectures with pointers wider than 16 bits, let us
21-
know if you want 16-bit support. Note that we do NOT guarantee that we will implement it!"
22-
);
23-
2417
#[cfg(feature = "alloc")]
2518
extern crate alloc;
2619

0 commit comments

Comments
 (0)