Re-export the consensus-encoding crate
What changed, and why it matters
This commit simply makes an internal helper crate (consensus-encoding) visible at the top level of several related Rust crates. It is a routine API-organization change with no security implications.
No security action required; treat as a normal dependency/API visibility change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds pub extern crate encoding; (or equivalent) to the crate roots of bitcoin, hashes, io, primitives, and units. This re-exports the consensus-encoding crate so downstream users can reference it through these crates. No logic, parsing, serialization, or cryptographic code is changed.
Changed components
bitcoin/src/lib.rshashes/src/lib.rsio/src/lib.rsprimitives/src/lib.rsunits/src/lib.rsInspect captured patch +15 / −0
diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs
index 8789ecad..521c0a9f 100644
--- a/bitcoin/src/lib.rs
+++ b/bitcoin/src/lib.rs
@@ -69,6 +69,9 @@ pub extern crate base58;
/// Re-export the `bech32` crate.
pub extern crate bech32;
+/// Re-export the `consensus-encoding` crate.
+pub extern crate encoding;
+
/// Rust implementation of cryptographic hash function algorithms.
pub extern crate hashes;
diff --git a/hashes/src/lib.rs b/hashes/src/lib.rs
index 5b28c138..83c7ffc6 100644
--- a/hashes/src/lib.rs
+++ b/hashes/src/lib.rs
@@ -79,6 +79,9 @@ pub extern crate serde;
#[cfg(all(test, feature = "serde"))]
extern crate serde_test;
+/// Re-export the `consensus-encoding` crate.
+pub extern crate encoding;
+
/// Re-export the `hex-conservative` crate.
#[cfg(feature = "hex")]
pub extern crate hex;
diff --git a/io/src/lib.rs b/io/src/lib.rs
index c51eacf5..7f3a3e5d 100644
--- a/io/src/lib.rs
+++ b/io/src/lib.rs
@@ -26,6 +26,8 @@ extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
+pub extern crate encoding;
+
#[cfg(feature = "hashes")]
pub extern crate hashes;
diff --git a/primitives/src/lib.rs b/primitives/src/lib.rs
index 1a506560..faa9e98c 100644
--- a/primitives/src/lib.rs
+++ b/primitives/src/lib.rs
@@ -29,6 +29,9 @@ extern crate std;
#[macro_use]
extern crate serde;
+/// Re-export of the `encoding` crate.
+pub extern crate encoding;
+
#[cfg(feature = "hex")]
pub extern crate hex_stable as hex;
diff --git a/units/src/lib.rs b/units/src/lib.rs
index e72009e5..4ee6d6e2 100644
--- a/units/src/lib.rs
+++ b/units/src/lib.rs
@@ -34,6 +34,10 @@ extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
+/// Re-export of the `encoding` crate.
+#[cfg(feature = "encoding")]
+pub extern crate encoding;
+
#[doc(hidden)]
pub mod _export {
/// A re-export of `core::*`.
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.