1#![no_std]
22#![warn(missing_docs)]
24#![warn(deprecated_in_future)]
25#![doc(test(attr(warn(unused))))]
26#![allow(clippy::uninlined_format_args)] #![warn(clippy::indexing_slicing)] #[cfg(feature = "alloc")]
32extern crate alloc;
33
34#[cfg(feature = "std")]
35extern crate std;
36
37#[cfg(feature = "encoding")]
38pub extern crate encoding;
39
40#[cfg(feature = "serde")]
41pub extern crate serde;
42
43#[cfg(feature = "arbitrary")]
44pub extern crate arbitrary;
45
46#[doc(hidden)]
47pub mod _export {
48 pub mod _core {
50 pub use core::*;
51 }
52}
53
54mod fee;
55mod internal_macros;
56
57pub mod amount;
58pub mod block;
59pub mod fee_rate;
60pub mod locktime;
61pub mod parse_int;
62pub mod pow;
63pub mod result;
64pub mod sequence;
65pub mod time;
66pub mod weight;
67
68#[doc(inline)]
69#[rustfmt::skip]
70pub use self::{
71 amount::{Amount, SignedAmount},
72 block::{BlockHeight, BlockHeightInterval, BlockMtp, BlockMtpInterval},
73 fee_rate::FeeRate,
74 locktime::{absolute, relative},
75 pow::{CompactTarget, Target, Work},
76 result::NumOpResult,
77 sequence::Sequence,
78 time::BlockTime,
79 weight::Weight
80};
81
82#[deprecated(since = "1.0.0-rc.0", note = "use `BlockHeightInterval` instead")]
83#[doc(hidden)]
84pub type BlockInterval = BlockHeightInterval;
85
86#[cfg(feature = "encoding")]
88include!("../include/decoder_newtype.rs");