Skip to content

Commit

Permalink
import collections from alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Nov 27, 2023
1 parent d496137 commit bc4266e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions traits/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//!
//! Errors thrown by crypto functions implementing the [`crate::HpkeCrypto`] traits.
use alloc::string::String;
use core::fmt::Display;

/// Errors thrown by [`crate::HpkeCrypto`] trait implementations.
Expand Down
8 changes: 8 additions & 0 deletions traits/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#![doc = include_str!("../Readme.md")]
#![no_std]

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

use alloc::string::String;
use alloc::vec::Vec;

use error::Error;
use types::{AeadAlgorithm, KemAlgorithm};
Expand Down

0 comments on commit bc4266e

Please sign in to comment.