From 216129fdd0424c2fce94e704d5bc6b8a8f6f61a8 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sat, 6 Jul 2024 13:56:19 +1000 Subject: [PATCH] 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. --- units/src/lib.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/units/src/lib.rs b/units/src/lib.rs index e3fbdf5811..7a4709d623 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -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;