Remove explicit mention of feature requirements
We are using `cfg_attr` to instruct the rustdocs build system to highlight feature requirements for functions, there is no need to explicitly mention feature requirements in the text.
This commit is contained in:
parent
806eaca5f1
commit
4c9bab9f6e
|
@ -128,7 +128,6 @@ impl<C: Signing> Secp256k1<C> {
|
||||||
|
|
||||||
/// Create a schnorr signature internally using the ThreadRng random number
|
/// Create a schnorr signature internally using the ThreadRng random number
|
||||||
/// generator to generate the auxiliary random data.
|
/// generator to generate the auxiliary random data.
|
||||||
/// Requires compilation with "rand-std" feature.
|
|
||||||
#[cfg(any(test, feature = "rand-std"))]
|
#[cfg(any(test, feature = "rand-std"))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "rand-std")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "rand-std")))]
|
||||||
#[deprecated(since = "0.21.0", note = "Use sign_schnorr instead.")]
|
#[deprecated(since = "0.21.0", note = "Use sign_schnorr instead.")]
|
||||||
|
@ -138,7 +137,6 @@ impl<C: Signing> Secp256k1<C> {
|
||||||
|
|
||||||
/// Create a schnorr signature internally using the ThreadRng random number
|
/// Create a schnorr signature internally using the ThreadRng random number
|
||||||
/// generator to generate the auxiliary random data.
|
/// generator to generate the auxiliary random data.
|
||||||
/// Requires compilation with "rand-std" feature.
|
|
||||||
#[cfg(any(test, feature = "rand-std"))]
|
#[cfg(any(test, feature = "rand-std"))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "rand-std")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "rand-std")))]
|
||||||
pub fn sign_schnorr(&self, msg: &Message, keypair: &KeyPair) -> Signature {
|
pub fn sign_schnorr(&self, msg: &Message, keypair: &KeyPair) -> Signature {
|
||||||
|
@ -191,8 +189,7 @@ impl<C: Signing> Secp256k1<C> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a schnorr signature using the given random number generator to
|
/// Create a schnorr signature using the given random number generator to
|
||||||
/// generate the auxiliary random data. Requires compilation with "rand"
|
/// generate the auxiliary random data.
|
||||||
/// feature.
|
|
||||||
#[cfg(any(test, feature = "rand"))]
|
#[cfg(any(test, feature = "rand"))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
||||||
#[deprecated(since = "0.21.0", note = "Use sign_schnorr_with_rng instead.")]
|
#[deprecated(since = "0.21.0", note = "Use sign_schnorr_with_rng instead.")]
|
||||||
|
@ -206,8 +203,7 @@ impl<C: Signing> Secp256k1<C> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a schnorr signature using the given random number generator to
|
/// Create a schnorr signature using the given random number generator to
|
||||||
/// generate the auxiliary random data. Requires compilation with "rand"
|
/// generate the auxiliary random data.
|
||||||
/// feature.
|
|
||||||
#[cfg(any(test, feature = "rand"))]
|
#[cfg(any(test, feature = "rand"))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
||||||
pub fn sign_schnorr_with_rng<R: Rng + CryptoRng>(
|
pub fn sign_schnorr_with_rng<R: Rng + CryptoRng>(
|
||||||
|
@ -262,7 +258,7 @@ impl <C: Signing> Secp256k1<C> {
|
||||||
/// Generates a random Schnorr `KeyPair` and its associated Schnorr `XOnlyPublicKey`.
|
/// Generates a random Schnorr `KeyPair` and its associated Schnorr `XOnlyPublicKey`.
|
||||||
///
|
///
|
||||||
/// Convenience function for [KeyPair::new] and [KeyPair::public_key].
|
/// Convenience function for [KeyPair::new] and [KeyPair::public_key].
|
||||||
/// Requires a signing-capable context and requires compilation with the "rand" feature.
|
/// Requires a signing-capable context.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[cfg(any(test, feature = "rand"))]
|
#[cfg(any(test, feature = "rand"))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
||||||
|
|
Loading…
Reference in New Issue