Re-export amount from primitives

We are trying to make it so that what ever crate a user uses they see
the same module/type tree (if the module or type exists).

E.g., one can do either of these.

If they use `bitcoin`:

```
use bitcoin::{
    amount, block, fee_rate, weight, merkle_tree, opcodes,
    pow, script, sequence, transaction, witness,
};
```

Or if they use `primitives`:

```
use bitcoin_primitives::{amount, block, fee_rate, weight};
```

The above imports were tested and `amount` was found to be missing.
This commit is contained in:
Tobin C. Harding 2024-11-11 14:21:47 +11:00
parent 84ede349b0
commit 727c519efa
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ pub mod transaction;
pub mod witness; pub mod witness;
#[doc(inline)] #[doc(inline)]
pub use units::amount::{Amount, SignedAmount}; pub use units::amount::{self, Amount, SignedAmount};
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
#[doc(inline)] #[doc(inline)]
pub use units::{ pub use units::{