Split no_stdlib and no_std into two features.

This commit is contained in:
Stephen Chung
2020-03-18 12:04:26 +08:00
11 changed files with 49 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
//! Helper module which defines most of the needed features from `std` for `no-std` builds.
#[cfg(feature = "no_stdlib")]
#[cfg(feature = "no_std")]
mod inner {
pub use core::{
any, arch, array, ascii, cell, char, clone, cmp, convert, default, f32, f64, ffi, fmt,
@@ -17,7 +17,7 @@ mod inner {
}
}
#[cfg(not(feature = "no_stdlib"))]
#[cfg(not(feature = "no_std"))]
mod inner {
pub use std::*;
}