1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#![no_std]
#![allow(internal_features)]
#![feature(core_intrinsics)]
#![feature(linkage)]
#![feature(waker_getters)]
#![allow(elided_lifetimes_in_paths)]

#[cfg(feature = "rustc-dep-of-std")]
pub mod args;
#[cfg(feature = "rustc-dep-of-std")]
pub mod env;
#[cfg(feature = "rustc-dep-of-std")]
pub mod fs;

#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
pub mod io_executor;

#[cfg(feature = "rustc-dep-of-std")]
pub mod net;
#[cfg(feature = "rustc-dep-of-std")]
pub mod net_async;
#[cfg(feature = "rustc-dep-of-std")]
pub mod process;
#[cfg(feature = "rustc-dep-of-std")]
pub mod std_rt;
#[cfg(feature = "rustc-dep-of-std")]
pub mod stdio;
#[cfg(feature = "rustc-dep-of-std")]
pub mod thread;
#[cfg(feature = "rustc-dep-of-std")]
pub mod time;
#[cfg(feature = "rustc-dep-of-std")]
pub mod tls;

#[cfg(feature = "rustc-dep-of-std")]
pub use moto_ipc::sync_pipe;

#[cfg(feature = "rustc-dep-of-std")]
pub use std_rt::*;

#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
pub mod rt_api;

#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
pub mod futex;

#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
pub use futex::*;

#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
pub mod mutex;

#[cfg(feature = "rt-api")]
extern crate alloc;

#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
pub mod util;

#[cfg(feature = "rustc-dep-of-std")]
mod libc;

#[allow(unused)]
mod external;

// Needed by bitflags!.
pub extern crate core as _core;