Version 0.1.1. Allow no_std.

This commit is contained in:
Andreas Fackler 2018-12-19 12:47:54 +01:00
parent 3c3f5cec9a
commit fb06a53884
4 changed files with 7 additions and 3 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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::*;

View File

@ -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;