Add "std" feature flag (#476)
* core feature Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * introduce std + default features Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * test std features on ci Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * finish up all features Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * Fix task_local macro * Remove crossbeam-channel and futures-timer from std * Move future::timeout() behind cfg_defaultpull/479/head
parent
f588ba6bdd
commit
335bd34470
@ -1,5 +1,10 @@
|
||||
//! Platform-specific extensions for Unix platforms.
|
||||
|
||||
pub mod fs;
|
||||
pub mod io;
|
||||
pub mod net;
|
||||
cfg_std! {
|
||||
pub mod io;
|
||||
}
|
||||
|
||||
cfg_default! {
|
||||
pub mod fs;
|
||||
pub mod net;
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
//! Platform-specific extensions for Windows.
|
||||
|
||||
pub mod io;
|
||||
cfg_std! {
|
||||
pub mod io;
|
||||
}
|
||||
|
Loading…
Reference in New Issue