Skip to content

Commit b052c17

Browse files
Jethro BeekmanJethro Beekman
Jethro Beekman
authored and
Jethro Beekman
committed
Add warning about core_io
1 parent 03fc4e0 commit b052c17

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ default = ["std"]
2222
std = ["libc"]
2323
box = [] # enable use of Box on not(std), requires alloc crate and feature
2424
vec = [] # enable use of Vec on not(std), requires collections crate and feature
25-
rdrand = []
25+
rdrand = [] # with not(std), requires core_io
2626

2727
[dev-dependencies]
2828
log = "0.3.0"

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@
253253
#[cfg(all(feature="box",not(feature="std")))] extern crate alloc;
254254
#[cfg(all(feature="vec",not(feature="std")))] extern crate collections;
255255

256+
#[cfg(all(not(feature="std"),feature="rdrand",not(feature="core_io")))]
257+
use using::rdrand::feature::without::std::feature::requires::core_io::feature;
258+
256259
#[cfg(all(feature="std",not(feature="rdrand")))] use core::cell::RefCell;
257260
use core::marker;
258261
use core::mem;

0 commit comments

Comments
 (0)