#neural-network

wasmtime-wasi-threads

Wasmtime implementation of the wasi-threads API

63 stable releases (21 major)

new 28.0.1 Jan 14, 2025
28.0.0 Dec 20, 2024
27.0.0 Nov 20, 2024
26.0.1 Nov 5, 2024
7.0.0 Mar 20, 2023

#1675 in WebAssembly

Download history 147/week @ 2024-09-26 405/week @ 2024-10-03 412/week @ 2024-10-10 238/week @ 2024-10-17 121/week @ 2024-10-24 364/week @ 2024-10-31 197/week @ 2024-11-07 194/week @ 2024-11-14 191/week @ 2024-11-21 86/week @ 2024-11-28 111/week @ 2024-12-05 124/week @ 2024-12-12 260/week @ 2024-12-19 132/week @ 2024-12-26 71/week @ 2025-01-02 169/week @ 2025-01-09

637 downloads per month
Used in 2 crates

Apache-2.0 WITH LLVM-exception

3.5MB
61K 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

~29–42MB
~784K SLoC