From 452a7cc091f4ecbd3b9a0d780c29160ace6272c1 Mon Sep 17 00:00:00 2001 From: Shing Him Ng Date: Wed, 26 Jun 2024 12:46:31 -0500 Subject: [PATCH] Re-export public functions, enums, and structs from units::parse in the bitcoin crate root --- bitcoin/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs index 5fdbe4fb1..eb2295551 100644 --- a/bitcoin/src/lib.rs +++ b/bitcoin/src/lib.rs @@ -199,7 +199,12 @@ pub mod amount { /// Unit parsing utilities. pub mod parse { /// Re-export everything from the [`units::parse`] module. - pub use units::parse::ParseIntError; + #[doc(inline)] + pub use units::parse::{ + hex_check_unprefixed, hex_remove_prefix, hex_u128, hex_u128_unchecked, hex_u128_unprefixed, + hex_u32, hex_u32_unchecked, hex_u32_unprefixed, int, ContainsPrefixError, + MissingPrefixError, ParseIntError, PrefixedHexError, UnprefixedHexError, + }; } mod encode_impls {