Skip to content

Commit

Permalink
switch from the core prelude to the std prelude
Browse files Browse the repository at this point in the history
in preparation for no-std support
  • Loading branch information
japaric committed Nov 27, 2023
1 parent aae8d0a commit 831a879
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust_crypto_provider/src/aead.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use alloc::{format, vec::Vec};

use aes_gcm::{Aes128Gcm as RC_Aes128Gcm, Aes256Gcm as RC_Aes256Gcm};
use chacha20poly1305::{
aead::{Aead, KeyInit, Payload},
Expand Down
2 changes: 2 additions & 0 deletions rust_crypto_provider/src/hkdf.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use alloc::{vec, vec::Vec};

use hkdf::Hkdf;
use hpke_rs_crypto::error::Error;
use sha2::{Sha256, Sha384, Sha512};
Expand Down
4 changes: 4 additions & 0 deletions rust_crypto_provider/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#![doc = include_str!("../Readme.md")]
#![cfg_attr(not(test), no_std)]

extern crate alloc;

use alloc::{string::String, vec::Vec};
use core::fmt::Display;

use hpke_rs_crypto::{
Expand Down

0 comments on commit 831a879

Please sign in to comment.