cap-std 0.0.0

Capability-based version of the Rust standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use cfg_if::cfg_if;

cfg_if! {
    if #[cfg(any(unix, target_os = "wasi", target_os = "fuchsia"))] {
        mod yanix;
        pub(crate) use self::yanix::*;
    } else if #[cfg(windows)] {
        mod winx;
        pub(crate) use self::winx::*;
    } else {
        compile_error!("cap-std doesn't compile for this platform yet");
    }
}

// For now, assume all platforms use the std implementation.
mod std;
pub(crate) use self::std::*;