Skip to content

Commit 8101840

Browse files
committed
Fix tests
1 parent 9d171a6 commit 8101840

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ hex = "0.4.0"
4141
serde_test = "1.0.89"
4242
rand_xorshift = "0.2.0"
4343
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" }
4647

4748
[[bench]]
4849
name = "key"
@@ -59,5 +60,5 @@ nightly = ["subtle/nightly", "num-bigint/nightly"]
5960
serde = ["num-bigint/serde", "serde_crate"]
6061
serde1 = ["serde"] # deprecated
6162
expose-internals = []
62-
std = ["alloc", "simple_asn1", "digest/std"]
63+
std = ["alloc", "simple_asn1", "digest/std", "rand/std"]
6364
alloc = ["digest/alloc"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
//! let dec_data = private_key.decrypt(padding, &enc_data).expect("failed to decrypt");
4848
//! assert_eq!(&data[..], &dec_data[..]);
4949
//! ```
50-
#![no_std]
50+
#![cfg_attr(not(test), no_std)]
5151

5252
#[cfg(feature = "alloc")]
5353
extern crate alloc;

0 commit comments

Comments
 (0)