#neural-network

wasmtime-wasi-threads

Wasmtime implementation of the wasi-threads API

62 stable releases (21 major)

28.0.0 Dec 20, 2024
27.0.0 Nov 20, 2024
26.0.1 Nov 5, 2024
25.0.3 Nov 5, 2024
7.0.0 Mar 20, 2023

#1682 in WebAssembly

Download history 574/week @ 2024-09-20 139/week @ 2024-09-27 583/week @ 2024-10-04 224/week @ 2024-10-11 251/week @ 2024-10-18 117/week @ 2024-10-25 406/week @ 2024-11-01 167/week @ 2024-11-08 230/week @ 2024-11-15 129/week @ 2024-11-22 94/week @ 2024-11-29 174/week @ 2024-12-06 54/week @ 2024-12-13 255/week @ 2024-12-20 134/week @ 2024-12-27 57/week @ 2025-01-03

578 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

~28–42MB
~782K SLoC