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 9, 2016
1 parent d386b5d commit fa62c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ default = ["libc"]
no_std = []
box = [] # enable use of Box on no_std, requires alloc crate and feature
vec = [] # enable use of Vec on no_std, requires collections crate and feature
rdrand = []
rdrand = [] # with no_std, requires core_io

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

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

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

0 comments on commit fa62c66

Please sign in to comment.