Skip to content

Commit

Permalink
units: Remove compile time pointer width check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tcharding committed Jul 6, 2024
1 parent 1c96da0 commit 216129f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions units/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
#![allow(clippy::needless_borrows_for_generic_args)] // https://github.com/rust-lang/rust-clippy/issues/12454
#![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")]
extern crate alloc;

Expand Down

0 comments on commit 216129f

Please sign in to comment.