summary refs log tree commit diff
path: root/library/std/src/sys/pal/wasip2
AgeCommit message (Collapse)AuthorLines
2024-05-02std: move thread parking to `sys::sync`joboet-9/+0
2024-03-13Provide `cabi_realloc` on `wasm32-wasip2` by defaultAlex Crichton-0/+67
This commit provides a component model intrinsic in the standard library by default on the `wasm32-wasip2` target. This intrinsic is not required by the component model itself but is quite common to use, for example it's needed if a wasm module receives a string or a list. The intention of this commit is to provide an overridable definition in the standard library through a weak definition of this function. That means that downstream crates can provide their own customized and more specific versions if they'd like, but the standard library's version should suffice for general-purpose use.
2024-03-13Get wasm32-wasip2 compiling with its custom pal implementationAlex Crichton-6/+0
The ordering of targets in `pal/mod.rs` did not end up using the wasip2 implementation, so after reordering that I've edited the implementation to compile correctly.
2024-03-12std: move `Once` implementations to `sys`joboet-4/+0
2024-02-27Rename wasm32-wasi-preview2 to wasm32-wasip2Ryan Levick-0/+78
Signed-off-by: Ryan Levick <me@ryanlevick.com>