#neural-network

wasmtime-wasi-threads

Wasmtime implementation of the wasi-threads API

65 stable releases (22 major)

29.0.1 Jan 21, 2025
28.0.1 Jan 14, 2025
28.0.0 Dec 20, 2024
27.0.0 Nov 20, 2024
7.0.0 Mar 20, 2023

#1698 in WebAssembly

Download history 258/week @ 2024-10-20 104/week @ 2024-10-27 414/week @ 2024-11-03 152/week @ 2024-11-10 281/week @ 2024-11-17 81/week @ 2024-11-24 88/week @ 2024-12-01 180/week @ 2024-12-08 195/week @ 2024-12-15 187/week @ 2024-12-22 57/week @ 2024-12-29 79/week @ 2025-01-05 227/week @ 2025-01-12 399/week @ 2025-01-19 73/week @ 2025-01-26 80/week @ 2025-02-02

783 downloads per month
Used in 2 crates

Apache-2.0 WITH LLVM-exception

3.5MB
62K 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
~782K SLoC