1 //! System bindings for the wasm/web platform
3 //! This module contains the facade (aka platform-specific) implementations of
4 //! OS level functionality for wasm. Note that this wasm is *not* the emscripten
5 //! wasm, so we have no runtime here.
7 //! This is all super highly experimental and not actually intended for
8 //! wide/production use yet, it's still all in the experimental category. This
9 //! will likely change over time.
11 //! Currently all functions here are basically stubs that immediately return
12 //! errors. The hope is that with a portability lint we can turn actually just
13 //! remove all this and just omit parts of the standard library if we're
14 //! compiling for wasm. That way it's a compile time error for something that's
15 //! guaranteed to be a runtime error!
17 #![deny(unsafe_op_in_unsafe_fn)]
20 #[path = "../unsupported/args.rs"]
22 #[path = "../unix/cmath.rs"]
25 #[path = "../unsupported/fs.rs"]
27 #[path = "../unsupported/io.rs"]
29 #[path = "../unsupported/net.rs"]
31 #[path = "../unsupported/os.rs"]
33 #[path = "../unix/os_str.rs"]
35 #[path = "../unix/path.rs"]
37 #[path = "../unsupported/pipe.rs"]
39 #[path = "../unsupported/process.rs"]
41 #[path = "../unsupported/stdio.rs"]
43 #[path = "../unsupported/thread_local_dtor.rs"]
44 pub mod thread_local_dtor;
45 #[path = "../unsupported/thread_local_key.rs"]
46 pub mod thread_local_key;
47 #[path = "../unsupported/time.rs"]
51 if #[cfg(target_feature = "atomics")] {
52 #[path = "../unix/locks"]
54 #![allow(unsafe_op_in_unsafe_fn)]
58 pub(crate) use futex_condvar::{Condvar, MovableCondvar};
59 pub(crate) use futex_mutex::{Mutex, MovableMutex};
60 pub(crate) use futex_rwlock::MovableRwLock;
62 #[path = "atomics/futex.rs"]
64 #[path = "atomics/thread.rs"]
67 #[path = "../unsupported/locks/mod.rs"]
69 #[path = "../unsupported/thread.rs"]
74 #[path = "../unsupported/common.rs"]
75 #[deny(unsafe_op_in_unsafe_fn)]