moto_runtime/
lib.rs

1#![no_std]
2#![allow(internal_features)]
3#![feature(core_intrinsics)]
4#![feature(linkage)]
5#![feature(waker_getters)]
6#![allow(elided_lifetimes_in_paths)]
7
8#[cfg(feature = "rustc-dep-of-std")]
9pub mod args;
10#[cfg(feature = "rustc-dep-of-std")]
11pub mod env;
12#[cfg(feature = "rustc-dep-of-std")]
13pub mod fs;
14
15#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
16pub mod io_executor;
17
18#[cfg(feature = "rustc-dep-of-std")]
19pub mod net;
20#[cfg(feature = "rustc-dep-of-std")]
21pub mod net_async;
22#[cfg(feature = "rustc-dep-of-std")]
23pub mod process;
24#[cfg(feature = "rustc-dep-of-std")]
25pub mod std_rt;
26#[cfg(feature = "rustc-dep-of-std")]
27pub mod stdio;
28#[cfg(feature = "rustc-dep-of-std")]
29pub mod thread;
30#[cfg(feature = "rustc-dep-of-std")]
31pub mod time;
32#[cfg(feature = "rustc-dep-of-std")]
33pub mod tls;
34
35#[cfg(feature = "rustc-dep-of-std")]
36pub use moto_ipc::sync_pipe;
37
38#[cfg(feature = "rustc-dep-of-std")]
39pub use std_rt::*;
40
41#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
42pub mod rt_api;
43
44#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
45pub mod futex;
46
47#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
48pub use futex::*;
49
50#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
51pub mod mutex;
52
53#[cfg(feature = "rt-api")]
54extern crate alloc;
55
56#[cfg(any(feature = "rustc-dep-of-std", feature = "rt-api"))]
57pub mod util;
58
59#[cfg(feature = "rustc-dep-of-std")]
60mod libc;
61
62#[allow(unused)]
63mod external;
64
65// Needed by bitflags!.
66pub extern crate core as _core;