File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ hex = "0.4.0"
41
41
serde_test = " 1.0.89"
42
42
rand_xorshift = " 0.2.0"
43
43
pem = " 0.8"
44
- # sha-1 = "0.9.0"
45
- # sha3 = "0.9.0"
44
+ sha-1 = { default-features = false , version = " 0.9.0" }
45
+ sha2 = { default-features = false , version = " 0.9.0" }
46
+ sha3 = { default-features = false , version = " 0.9.0" }
46
47
47
48
[[bench ]]
48
49
name = " key"
@@ -59,5 +60,5 @@ nightly = ["subtle/nightly", "num-bigint/nightly"]
59
60
serde = [" num-bigint/serde" , " serde_crate" ]
60
61
serde1 = [" serde" ] # deprecated
61
62
expose-internals = []
62
- std = [" alloc" , " simple_asn1" , " digest/std" ]
63
+ std = [" alloc" , " simple_asn1" , " digest/std" , " rand/std " ]
63
64
alloc = [" digest/alloc" ]
Original file line number Diff line number Diff line change 47
47
//! let dec_data = private_key.decrypt(padding, &enc_data).expect("failed to decrypt");
48
48
//! assert_eq!(&data[..], &dec_data[..]);
49
49
//! ```
50
- #![ no_std]
50
+ #![ cfg_attr ( not ( test ) , no_std) ]
51
51
52
52
#[ cfg( feature = "alloc" ) ]
53
53
extern crate alloc;
You can’t perform that action at this time.
0 commit comments