Merge pull request #69 from michalkucharczyk/mku-compilation-fix-no-std

compilation fix for no-std
This commit is contained in:
Steven Roose 2025-06-12 12:37:33 +01:00 committed by GitHub
commit bc5a233b3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ pub extern crate serde;
use alloc::borrow::Cow;
use core::{fmt, str};
#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::{string::ToString, vec::Vec};
/// We support a wide range of dependency versions for `rand` and `rand_core` and not
/// all versions play nicely together. These re-exports fix that.
#[cfg(all(feature = "rand", feature = "rand_core"))]