Skip to content

Commit

Permalink
Add warning about core_io
Browse files Browse the repository at this point in the history
  • Loading branch information
Jethro Beekman committed Jul 10, 2016
1 parent e05b5ca commit e8f08a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -22,7 +22,7 @@ default = ["std"]
std = ["libc"]
box = [] # enable use of Box on not(std), requires alloc crate and feature
vec = [] # enable use of Vec on not(std), requires collections crate and feature
rdrand = []
rdrand = [] # with not(std), requires core_io

[dev-dependencies]
log = "0.3.0"
3 changes: 3 additions & 0 deletions src/lib.rs
Expand Up @@ -253,6 +253,9 @@
#[cfg(all(feature="box",not(feature="std")))] extern crate alloc;
#[cfg(all(feature="vec",not(feature="std")))] extern crate collections;

#[cfg(all(not(feature="std"),feature="rdrand",not(feature="core_io")))]
use using::rdrand::feature::without::std::feature::requires::core_io::feature;

#[cfg(all(feature="std",not(feature="rdrand")))] use core::cell::RefCell;
use core::marker;
use core::mem;
Expand Down

0 comments on commit e8f08a6

Please sign in to comment.