What changed, and why it matters
This is a small Rust crate housekeeping change. The `hex` crate was already part of the public API of `consensus_encoding`, but it was not re-exported at the crate's top level. The commit adds that re-export so downstream users can access the same `hex` version the crate uses. There is no bug fix, behavior change, or security patch in the diff.
No security action needed. Treat as a normal dependency/API ergonomics improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds a feature-gated pub extern crate hex; to consensus_encoding/src/lib.rs. This follows the Rust convention that crates whose types appear in a library’s public API should be re-exported, preventing version mismatches and improving ergonomics. No unsafe code, no parsing/encoding logic changes, and no vulnerability remediation is present.
Changed components
consensus_encoding/src/lib.rsInspect captured patch +3 / −0
diff --git a/consensus_encoding/src/lib.rs b/consensus_encoding/src/lib.rs
index 0e72e82d..a5c5e95b 100644
--- a/consensus_encoding/src/lib.rs
+++ b/consensus_encoding/src/lib.rs
@@ -76,6 +76,9 @@ extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
+#[cfg(feature = "hex")]
+pub extern crate hex;
+
mod compact_size;
mod decode;
mod encode;
Why this scored 20/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.