about summary refs log tree commit diff
path: root/library/std/src/sys/wasi/mod.rs
AgeCommit message (Collapse)AuthorLines
2022-12-14std: use a more efficient `Once` on platforms without threadsjoboet-0/+2
2022-10-10Allow compiling the `wasm32-wasi` std library with atomicsAndrew Brown-0/+3
The issue #102157 demonstrates how currently the `-Z build-std` option will fail when re-compiling the standard library with `RUSTFLAGS` like `RUSTFLAGS="-C target-feature=+atomics,+bulk-memory -C link-args=--shared-memory"`. This change attempts to resolve those build issues by depending on the the WebAssembly `futex` module and providing an implementation for `env_lock`. Fixes #102157.
2022-03-22Move std::sys::{mutex, condvar, rwlock} to std::sys::locks.Mara Bos-6/+2
2022-01-28wasi: update to wasi 0.11.0Harald Hoyer-19/+22
To make use of `sock_accept()`, update the wasi crate to `0.11.0`. Signed-off-by: Harald Hoyer <harald@profian.com>
2021-07-03Move `os_str_bytes` to `sys::unix` and reuse it on other platforms.Christiaan Dirkx-1/+2
2021-06-15Rename ErrorKind::Unknown to Uncategorized.Mara Bos-2/+2
2021-06-15Redefine `ErrorKind::Other` and stop using it in std.Mara Bos-2/+2
2021-05-03Move `std::sys::wasi::ext` to `std::os::wasi`Christiaan Dirkx-1/+0
2021-05-02Use ErrorKind::OutOfMemory in unix, windows, and wasiKornel-0/+1
2021-04-30Auto merge of #84522 - CDirkx:cmath, r=yaahcbors-1/+1
Reuse `sys::unix::cmath` on other platforms Reuse `sys::unix::cmath` on all non-`windows` platforms. `unix` is chosen as the canonical location instead of `unsupported` or `common` because `unsupported` doesn't make sense semantically and `common` is reserved for code that is supported on all platforms. Also `unix` is already the home of some non-`windows` code that is technically not exclusive to `unix` like `unix::path`.
2021-04-28Reuse `unix::cmath`Christiaan Dirkx-1/+1
2021-04-22Move most init to `sys::init`Christiaan Dirkx-2/+0
2021-04-18Rename `NotSupported` to `Unsupported`Christiaan Dirkx-1/+1
2021-04-18Update `decode_error_kind` to decode os errors to `NotSupported`Christiaan Dirkx-0/+1
2020-10-13Deny unsafe_op_in_unsafe_fn for unsupported/common.rs through sys/wasm too.Mara Bos-0/+1
2020-09-15Consolidate wasi::process and unsupported::processEric Huss-0/+1
2020-09-15Consolidate wasi alloc with unix alloc.Eric Huss-0/+1
2020-09-15Consolidate byte-identical modules.Eric Huss-0/+2
2020-07-27mv std libs to library/mark-0/+96