about summary refs log tree commit diff
path: root/library/std/src/sys/wasi/mod.rs
AgeCommit message (Collapse)AuthorLines
2024-01-11std: begin moving platform support modules into `pal`joboet-198/+0
2023-10-06Use `io_error_more` on WASIShE3py-23/+92
2023-08-25Add a new helper to avoid calling io::Error::kindBen Kimock-0/+5
2023-07-29Add wasm32-wasi-threads target + WASI threadsGeorgii Rylov-5/+17
2023-05-03Rollup merge of #105695 - joboet:remove_generic_parker, r=m-ou-seManish Goregaokar-0/+2
Replace generic thread parker with explicit no-op parker With #98391 merged, all platforms supporting threads now have their own parking implementations. Therefore, the generic implementation can be removed. On the remaining platforms (really just WASM without atomics), parking is not supported, so calls to `thread::park` now return instantly, which is [allowed by their API](https://doc.rust-lang.org/nightly/std/thread/fn.park.html). This is a change in behaviour, as spurious wakeups do not currently occur since all platforms guard against them. It is invalid to depend on this, but I'm still going to tag this as libs-api for confirmation. ````@rustbot```` label +T-libs +T-libs-api +A-atomic r? rust-lang/libs
2023-04-20Fix `std` compilation error for wasi+atomicsPierre Krieger-2/+7
2023-02-16std: replace generic thread parker with explicit no-op parkerjoboet-0/+2
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