diff --git a/Cargo.toml b/Cargo.toml index 4ddc56b..574ce59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rand04_compat" description = "Wrappers for compatibility with rand 0.4." -version = "0.1.0" +version = "0.1.1" license = "MIT/Apache-2.0" repository = "https://github.com/poanetwork/rand04_compat" readme = "README.md" diff --git a/rand04/Cargo.toml b/rand04/Cargo.toml index 64fcaee..769771c 100644 --- a/rand04/Cargo.toml +++ b/rand04/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rand04" description = "Re-export of rand 0.4, so it can be used together with a later version of rand." -version = "0.1.0" +version = "0.1.1" license = "MIT/Apache-2.0" repository = "https://github.com/poanetwork/rand04_compat" readme = "README.md" diff --git a/rand04/src/lib.rs b/rand04/src/lib.rs index 775e5e6..5f0be6d 100644 --- a/rand04/src/lib.rs +++ b/rand04/src/lib.rs @@ -3,4 +3,6 @@ //! This can be used instead of the deprecated [rand](https://crates.io/crates/rand) 0.4 in crates //! that for reasons of compatibility need to depend on both a current version and 0.4. +#![no_std] + pub use rand::*; diff --git a/src/lib.rs b/src/lib.rs index a971edf..5ce3f83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,8 @@ //! # Wrappers for compatibility with rand 0.4 -use std::marker::PhantomData; +#![no_std] + +use core::marker::PhantomData; use rand::Rng; pub use rand04;