Skip to content

Commit

Permalink
Remove remaining uses of doc(cfg(..))
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Aug 23, 2024
1 parent 03e1d29 commit cd60602
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion belt-hash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
1 change: 0 additions & 1 deletion md2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
1 change: 0 additions & 1 deletion md4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
1 change: 0 additions & 1 deletion md5/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
3 changes: 0 additions & 3 deletions ripemd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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");
}
1 change: 0 additions & 1 deletion sha1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
1 change: 0 additions & 1 deletion sha2/src/sha256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 0 additions & 1 deletion sha2/src/sha512.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
3 changes: 0 additions & 3 deletions sha3/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit cd60602

Please sign in to comment.