Add fee_rate::serde re-export

When we added the `fee_rate::serde` module we forgot to re-export it.
This is needed so downstream can do specify serde attributes on struct
fields.

```rust
    #[serde(with = "bitcoin::fee_rate::serde::as_sat_per_kwu")]
    rate: FeeRate,
```
This commit is contained in:
Tobin C. Harding 2025-03-07 13:35:49 +11:00
parent 12b35e734e
commit d1c758f5a4
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ pub use self::{
pub mod fee_rate { pub mod fee_rate {
/// Re-export everything from the [`units::fee_rate`] module. /// Re-export everything from the [`units::fee_rate`] module.
pub use units::fee_rate::FeeRate; pub use units::fee_rate::FeeRate;
#[cfg(feature = "serde")]
pub use units::fee_rate::serde;
} }
/// Provides absolute and relative locktimes. /// Provides absolute and relative locktimes.