Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Jun 11, 2020
1 parent 9d171a6 commit 8101840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ hex = "0.4.0"
serde_test = "1.0.89"
rand_xorshift = "0.2.0"
pem = "0.8"
#sha-1 = "0.9.0"
#sha3 = "0.9.0"
sha-1 = { default-features = false, version = "0.9.0" }
sha2 = { default-features = false, version = "0.9.0" }
sha3 = { default-features = false, version = "0.9.0" }

[[bench]]
name = "key"
Expand All @@ -59,5 +60,5 @@ nightly = ["subtle/nightly", "num-bigint/nightly"]
serde = ["num-bigint/serde", "serde_crate"]
serde1 = ["serde"] # deprecated
expose-internals = []
std = ["alloc", "simple_asn1", "digest/std"]
std = ["alloc", "simple_asn1", "digest/std", "rand/std"]
alloc = ["digest/alloc"]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
//! let dec_data = private_key.decrypt(padding, &enc_data).expect("failed to decrypt");
//! assert_eq!(&data[..], &dec_data[..]);
//! ```
#![no_std]
#![cfg_attr(not(test), no_std)]

#[cfg(feature = "alloc")]
extern crate alloc;
Expand Down

0 comments on commit 8101840

Please sign in to comment.