From 79791e7444326d284bdf42c40926f6b05a6b65f7 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sat, 28 Dec 2024 09:03:42 +1100 Subject: [PATCH] primitives: Add core re-exports This is not strictly needed but we would like to copy the public macros from `units` to primitives and they use `$crate::_export` paths. --- primitives/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/primitives/src/lib.rs b/primitives/src/lib.rs index d629344e7..a25d422e7 100644 --- a/primitives/src/lib.rs +++ b/primitives/src/lib.rs @@ -33,6 +33,14 @@ extern crate std; #[macro_use] extern crate serde; +#[doc(hidden)] +pub mod _export { + /// A re-export of `core::*`. + pub mod _core { + pub use core::*; + } +} + pub mod block; pub mod locktime; pub mod merkle_tree;