We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b7c63d + 8653fb2 commit bc5a233Copy full SHA for bc5a233
src/lib.rs
@@ -48,6 +48,9 @@ pub extern crate serde;
48
use alloc::borrow::Cow;
49
use core::{fmt, str};
50
51
+#[cfg(all(feature = "alloc", not(feature = "std")))]
52
+use alloc::{string::ToString, vec::Vec};
53
+
54
/// We support a wide range of dependency versions for `rand` and `rand_core` and not
55
/// all versions play nicely together. These re-exports fix that.
56
#[cfg(all(feature = "rand", feature = "rand_core"))]
0 commit comments