mod.rs - source
Description: Source of the Rust file `library/std/src/sys/pal/wasm/mod.rs`.

#
std/sys/pal/wasm/
mod.rs

    1//! System bindings for the wasm/web platform
    2//!
    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//! or wasi wasm, so we have no runtime here.
    6//!
    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.
    10//!
    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!
    16
    17#![deny(unsafe_op_in_unsafe_fn)]
    18
    19#[path = "../unsupported/os.rs"]
    20pub mod os;
    21#[path = "../unsupported/time.rs"]
    22pub mod time;
    23
    24#[cfg(target_feature = "atomics")]
    25#[path = "atomics/futex.rs"]
    26pub mod futex;
    27
    28#[path = "../unsupported/common.rs"]
    29#[deny(unsafe_op_in_unsafe_fn)]
    30mod common;
    31pub use common::*;