From 38b8c6f5ea2d997e08aae496ed333abeedab9406 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 1 Nov 2024 18:07:35 +1100 Subject: [PATCH] units: Remove a bunch of feature gateing Remove `alloc` feature gating from all modules in `units`! --- units/src/lib.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/units/src/lib.rs b/units/src/lib.rs index 189e11aff..f0e3994a1 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -22,23 +22,16 @@ extern crate alloc; extern crate std; pub mod amount; -#[cfg(feature = "alloc")] pub mod block; -#[cfg(feature = "alloc")] pub mod fee_rate; -#[cfg(feature = "alloc")] pub mod locktime; -#[cfg(feature = "alloc")] pub mod parse; -#[cfg(feature = "alloc")] pub mod weight; -#[doc(inline)] -pub use self::amount::{Amount, SignedAmount}; -#[cfg(feature = "alloc")] #[doc(inline)] #[rustfmt::skip] pub use self::{ + amount::{Amount, SignedAmount}, block::{BlockHeight, BlockInterval}, fee_rate::FeeRate, weight::Weight