taproot-primitives: Add crate externs for public API types
What changed, and why it matters
This commit is a routine Rust crate maintenance change. It makes several underlying libraries publicly visible from the taproot-primitives crate root so that downstream users can refer to those types more conveniently. There is no security issue here.
No action required. This is a benign API improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds public extern crate re-exports (arbitrary, hashes, secp256k1, serde) to taproot-primitives/src/lib.rs. This follows the Rust ecosystem convention that crates exposing another crate’s types in their public API should re-export that dependency. It is purely an API ergonomics/visibility change with no functional, cryptographic, or memory-safety implications.
Changed components
taproot-primitives/src/lib.rsInspect captured patch +9 / −0
diff --git a/taproot-primitives/src/lib.rs b/taproot-primitives/src/lib.rs
index 41085662..f8bf1f05 100644
--- a/taproot-primitives/src/lib.rs
+++ b/taproot-primitives/src/lib.rs
@@ -18,6 +18,15 @@ extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
+#[cfg(feature = "arbitrary")]
+pub extern crate arbitrary;
+
+pub extern crate hashes;
+pub extern crate secp256k1;
+
+#[cfg(feature = "serde")]
+pub extern crate serde;
+
#[rustfmt::skip] // Keep pub re-exports separate
#[doc(no_inline)]
pub use self::error::InvalidTaprootLeafVersionError;
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.