#neural-network

wasmtime-wasi-threads

Wasmtime implementation of the wasi-threads API

61 stable releases (20 major)

new 27.0.0 Nov 20, 2024
26.0.1 Nov 5, 2024
26.0.0 Oct 22, 2024
25.0.3 Nov 5, 2024
7.0.0 Mar 20, 2023

#1616 in WebAssembly

Download history 97/week @ 2024-07-31 142/week @ 2024-08-07 172/week @ 2024-08-14 149/week @ 2024-08-21 66/week @ 2024-08-28 97/week @ 2024-09-04 88/week @ 2024-09-11 368/week @ 2024-09-18 342/week @ 2024-09-25 96/week @ 2024-10-02 721/week @ 2024-10-09 186/week @ 2024-10-16 172/week @ 2024-10-23 228/week @ 2024-10-30 312/week @ 2024-11-06 113/week @ 2024-11-13

946 downloads per month
Used in 2 crates

Apache-2.0 WITH LLVM-exception

3.5MB
60K SLoC

wasmtime-wasi-threads

Implement the wasi-threads specification in Wasmtime.

Note: this crate is experimental and not yet suitable for use in multi-tenant embeddings. As specified, a trap or WASI exit in one thread must end execution for all threads. Due to the complexity of stopping threads, however, this implementation currently exits the process entirely. This will work for some use cases (e.g., CLI usage) but not for embedders. This warning can be removed once a suitable mechanism is implemented that avoids exiting the process.


lib.rs:

Implement wasi-threads.

Dependencies

~28–41MB
~769K SLoC