@@ -35,7 +35,7 @@ use ffi::{self, CPtr};
35
35
/// Basic usage:
36
36
///
37
37
/// ```
38
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
38
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
39
39
/// use secp256k1::{rand, Secp256k1, SecretKey};
40
40
///
41
41
/// let secp = Secp256k1::new_randomize();
@@ -129,7 +129,7 @@ impl SecretKey {
129
129
/// # Examples
130
130
///
131
131
/// ```
132
- /// # #[cfg(feature= "rand")] {
132
+ /// # #[cfg(feature = "rand-std ")] {
133
133
/// use secp256k1::{rand, SecretKey};
134
134
/// let secret_key = SecretKey::new(&mut rand::thread_rng());
135
135
/// # }
@@ -185,7 +185,7 @@ impl SecretKey {
185
185
/// # Examples
186
186
///
187
187
/// ```
188
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
188
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
189
189
/// use secp256k1::{rand, Secp256k1, SecretKey, KeyPair};
190
190
///
191
191
/// let secp = Secp256k1::new_randomize();
@@ -329,7 +329,7 @@ impl PublicKey {
329
329
/// # Examples
330
330
///
331
331
/// ```
332
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
332
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
333
333
/// use secp256k1::{rand, Secp256k1, SecretKey, PublicKey};
334
334
///
335
335
/// let secp = Secp256k1::new_randomize();
@@ -377,7 +377,7 @@ impl PublicKey {
377
377
/// # Examples
378
378
///
379
379
/// ```
380
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
380
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
381
381
/// use secp256k1::{rand, Secp256k1, PublicKey, KeyPair};
382
382
///
383
383
/// let secp = Secp256k1::new_randomize();
@@ -508,7 +508,7 @@ impl PublicKey {
508
508
/// # Examples
509
509
///
510
510
/// ```
511
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
511
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
512
512
/// use secp256k1::{rand, Secp256k1};
513
513
///
514
514
/// let secp = Secp256k1::new_randomize();
@@ -534,7 +534,7 @@ impl PublicKey {
534
534
/// # Examples
535
535
///
536
536
/// ```
537
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
537
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
538
538
/// use secp256k1::{rand, Secp256k1, PublicKey};
539
539
///
540
540
/// let secp = Secp256k1::new_randomize();
@@ -650,7 +650,7 @@ impl Ord for PublicKey {
650
650
/// Basic usage:
651
651
///
652
652
/// ```
653
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
653
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
654
654
/// use secp256k1::{rand, KeyPair, Secp256k1};
655
655
///
656
656
/// let secp = Secp256k1::new_randomize();
@@ -744,7 +744,7 @@ impl KeyPair {
744
744
/// # Examples
745
745
///
746
746
/// ```
747
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
747
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
748
748
/// use secp256k1::{rand, Secp256k1, SecretKey, KeyPair};
749
749
///
750
750
/// let secp = Secp256k1::new_randomize();
@@ -790,7 +790,7 @@ impl KeyPair {
790
790
/// # Examples
791
791
///
792
792
/// ```
793
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
793
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
794
794
/// use secp256k1::{Secp256k1, KeyPair};
795
795
/// use secp256k1::rand::{RngCore, thread_rng};
796
796
///
@@ -914,7 +914,7 @@ impl<'de> ::serde::Deserialize<'de> for KeyPair {
914
914
/// Basic usage:
915
915
///
916
916
/// ```
917
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
917
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
918
918
/// use secp256k1::{rand, Secp256k1, KeyPair, XOnlyPublicKey};
919
919
///
920
920
/// let secp = Secp256k1::new_randomize();
@@ -1042,7 +1042,7 @@ impl XOnlyPublicKey {
1042
1042
/// # Examples
1043
1043
///
1044
1044
/// ```
1045
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
1045
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
1046
1046
/// use secp256k1::{Secp256k1, KeyPair};
1047
1047
/// use secp256k1::rand::{RngCore, thread_rng};
1048
1048
///
@@ -1107,7 +1107,7 @@ impl XOnlyPublicKey {
1107
1107
/// # Examples
1108
1108
///
1109
1109
/// ```
1110
- /// # #[cfg(all(feature= "rand", any(feature = "alloc", feature = "std")))] {
1110
+ /// # #[cfg(all(feature = "rand-std ", any(feature = "alloc", feature = "std")))] {
1111
1111
/// use secp256k1::{Secp256k1, KeyPair};
1112
1112
/// use secp256k1::rand::{thread_rng, RngCore};
1113
1113
///
@@ -1394,7 +1394,7 @@ mod test {
1394
1394
}
1395
1395
1396
1396
#[ test]
1397
- #[ cfg( all( feature = "rand" , any( features = "alloc" , feature = "std" ) ) ) ]
1397
+ #[ cfg( all( feature = "rand-std " , any( features = "alloc" , feature = "std" ) ) ) ]
1398
1398
fn keypair_slice_round_trip ( ) {
1399
1399
let s = Secp256k1 :: new_randomize ( ) ;
1400
1400
0 commit comments