diff --git a/belt-hash/src/lib.rs b/belt-hash/src/lib.rs index 7207eb11..874b490e 100644 --- a/belt-hash/src/lib.rs +++ b/belt-hash/src/lib.rs @@ -135,7 +135,6 @@ impl fmt::Debug for BeltHashCore { } #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for BeltHashCore { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.81"); } diff --git a/md2/src/lib.rs b/md2/src/lib.rs index 9313baca..45685a5f 100644 --- a/md2/src/lib.rs +++ b/md2/src/lib.rs @@ -136,7 +136,6 @@ impl fmt::Debug for Md2Core { } #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for Md2Core { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.840.113549.2.2"); } diff --git a/md4/src/lib.rs b/md4/src/lib.rs index f41b891a..e4f4ee5f 100644 --- a/md4/src/lib.rs +++ b/md4/src/lib.rs @@ -119,7 +119,6 @@ impl fmt::Debug for Md4Core { } #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for Md4Core { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.840.113549.2.4"); } diff --git a/md5/src/lib.rs b/md5/src/lib.rs index 223db46e..9803578c 100644 --- a/md5/src/lib.rs +++ b/md5/src/lib.rs @@ -111,7 +111,6 @@ impl fmt::Debug for Md5Core { } #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for Md5Core { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.840.113549.2.5"); } diff --git a/ripemd/src/lib.rs b/ripemd/src/lib.rs index 24687616..90a10456 100644 --- a/ripemd/src/lib.rs +++ b/ripemd/src/lib.rs @@ -173,7 +173,6 @@ impl_ripemd!(Ripemd256Core, Ripemd256, c256, "256", "RIPEMD-256", U32); impl_ripemd!(Ripemd320Core, Ripemd320, c320, "320", "RIPEMD-320", U40); #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for Ripemd128Core { /// The OID used for the RIPEMD-160. There are two OIDs defined. The Teletrust one (which is /// used by almost anybody, including BouncyCastle, OpenSSL, GnuTLS, etc. and the ISO one @@ -182,7 +181,6 @@ impl AssociatedOid for Ripemd128Core { } #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for Ripemd160Core { /// The OID used for the RIPEMD-160. There are two OIDs defined. The Teletrust one (which is /// used by almost anybody, including BouncyCastle, OpenSSL, GnuTLS, etc. and the ISO one @@ -191,7 +189,6 @@ impl AssociatedOid for Ripemd160Core { } #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for Ripemd256Core { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.3.36.3.2.3"); } diff --git a/sha1/src/lib.rs b/sha1/src/lib.rs index 5361f604..cbf5fbee 100644 --- a/sha1/src/lib.rs +++ b/sha1/src/lib.rs @@ -114,7 +114,6 @@ impl fmt::Debug for Sha1Core { } #[cfg(feature = "oid")] -#[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for Sha1Core { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.3.14.3.2.26"); } diff --git a/sha2/src/sha256.rs b/sha2/src/sha256.rs index 5d009ed7..4e084902 100644 --- a/sha2/src/sha256.rs +++ b/sha2/src/sha256.rs @@ -45,7 +45,6 @@ fn to_u32s(block: &[u8; 64]) -> [u32; 16] { /// /// This is a low-level "hazmat" API which provides direct access to the core /// functionality of SHA-256. -#[cfg_attr(docsrs, doc(cfg(feature = "compress")))] pub fn compress256(state: &mut [u32; 8], blocks: &[[u8; 64]]) { compress(state, blocks) } diff --git a/sha2/src/sha512.rs b/sha2/src/sha512.rs index f0daee1e..08e802fc 100644 --- a/sha2/src/sha512.rs +++ b/sha2/src/sha512.rs @@ -45,7 +45,6 @@ fn to_u64s(block: &[u8; 128]) -> [u64; 16] { /// /// This is a low-level "hazmat" API which provides direct access to the core /// functionality of SHA-512. -#[cfg_attr(docsrs, doc(cfg(feature = "compress")))] pub fn compress512(state: &mut [u64; 8], blocks: &[[u8; 128]]) { compress(state, blocks) } diff --git a/sha3/src/macros.rs b/sha3/src/macros.rs index a5ee3e43..a91d09ca 100644 --- a/sha3/src/macros.rs +++ b/sha3/src/macros.rs @@ -133,7 +133,6 @@ macro_rules! impl_sha3 { impl_sha3!($name, $full_name, $output_size, $rate, $pad, $alg_name); #[cfg(feature = "oid")] - #[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for $name { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap($oid); } @@ -289,7 +288,6 @@ macro_rules! impl_shake { ); #[cfg(feature = "oid")] - #[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for $name { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap($oid); } @@ -443,7 +441,6 @@ macro_rules! impl_turbo_shake { impl_turbo_shake!($name, $full_name, $reader, $reader_full, $rate, $alg_name); #[cfg(feature = "oid")] - #[cfg_attr(docsrs, doc(cfg(feature = "oid")))] impl AssociatedOid for $name { const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap($oid); }