From 9aceddbff97d2387ae62e20f4cdca28c7c7ab860 Mon Sep 17 00:00:00 2001 From: Avi Dessauer Date: Fri, 29 Mar 2024 18:58:39 -0500 Subject: [PATCH] Fix no_std build --- src/errors.rs | 4 ++++ src/hash.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index 032291b..1696f91 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,3 +1,7 @@ +use alloc::{ + boxed::Box, + string::{String, ToString}, +}; use core::fmt::{self, Display, Formatter}; #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] diff --git a/src/hash.rs b/src/hash.rs index 18ef25e..1c9b513 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -1,4 +1,4 @@ -use alloc::{rc::Rc, sync::Arc}; +use alloc::{boxed::Box, rc::Rc, string::String, sync::Arc, vec::Vec}; pub trait PortableHasher: PortableUpdate + Default { fn finalize_reset(&mut self) -> [u8; LEN];