Remove rustdocs from pub extern crate re-exports
What changed, and why it matters
This commit only removes documentation comments from public crate re-exports. It does not change any executable code, APIs, or behavior. There is no security relevance.
No action required. This is a non-functional documentation cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch deletes rustdoc comments (///) above pub extern crate declarations across four library root files. The commit message explicitly states the docs are not rendered and inconsistently applied. No code, feature gates, module structure, or dependency versions were modified.
Changed components
bitcoin/src/lib.rshashes/src/lib.rsprimitives/src/lib.rsunits/src/lib.rsInspect captured patch +0 / −25
diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs
index 7fc8c3e5..98e890b7 100644
--- a/bitcoin/src/lib.rs
+++ b/bitcoin/src/lib.rs
@@ -62,35 +62,15 @@ extern crate std;
#[cfg(feature = "arbitrary")]
pub extern crate arbitrary;
-/// Encodes and decodes base64 as bytes or utf8.
#[cfg(feature = "base64")]
pub extern crate base64;
-
-/// Bitcoin base58 encoding and decoding.
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;
-
-/// Re-export the `hex-conservative` crate.
pub extern crate hex_stable as hex;
-
-/// Re-export the `bitcoin-io` crate.
pub extern crate io;
-
-/// Re-export the `primitives` crate.
pub extern crate primitives;
-
-/// Re-export the `rust-secp256k1` crate.
-///
-/// Rust wrapper library for Pieter Wuille's libsecp256k1. Implements ECDSA and BIP-0340 signatures
-/// for the SECG elliptic curve group secp256k1 and related utilities.
pub extern crate secp256k1;
#[cfg(feature = "serde")]
diff --git a/hashes/src/lib.rs b/hashes/src/lib.rs
index d9b3efec..493254fb 100644
--- a/hashes/src/lib.rs
+++ b/hashes/src/lib.rs
@@ -72,17 +72,14 @@ extern crate core;
#[cfg(feature = "std")]
extern crate std;
-/// A generic serialization/deserialization framework.
#[cfg(feature = "serde")]
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_stable as hex;
#[cfg(feature = "hex")]
diff --git a/primitives/src/lib.rs b/primitives/src/lib.rs
index 57c16e35..d4646b6e 100644
--- a/primitives/src/lib.rs
+++ b/primitives/src/lib.rs
@@ -32,7 +32,6 @@ pub extern crate serde;
#[cfg(feature = "arbitrary")]
pub extern crate arbitrary;
-/// Re-export of the `encoding` crate.
pub extern crate encoding;
#[cfg(feature = "hex")]
diff --git a/units/src/lib.rs b/units/src/lib.rs
index 352d5cd1..bfaeeba8 100644
--- a/units/src/lib.rs
+++ b/units/src/lib.rs
@@ -34,7 +34,6 @@ extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
-/// Re-export of the `encoding` crate.
#[cfg(feature = "encoding")]
pub extern crate encoding;
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.