Skip to content

Commit bc5a233

Browse files
authored
Merge pull request #69 from michalkucharczyk/mku-compilation-fix-no-std
compilation fix for no-std
2 parents 2b7c63d + 8653fb2 commit bc5a233

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ pub extern crate serde;
4848
use alloc::borrow::Cow;
4949
use core::{fmt, str};
5050

51+
#[cfg(all(feature = "alloc", not(feature = "std")))]
52+
use alloc::{string::ToString, vec::Vec};
53+
5154
/// We support a wide range of dependency versions for `rand` and `rand_core` and not
5255
/// all versions play nicely together. These re-exports fix that.
5356
#[cfg(all(feature = "rand", feature = "rand_core"))]

0 commit comments

Comments
 (0)