#neural-network

wasmtime-wasi-threads

Wasmtime implementation of the wasi-threads API

60 stable releases (19 major)

new 26.0.1 Nov 5, 2024
25.0.3 Nov 5, 2024
24.0.2 Nov 5, 2024
23.0.3 Oct 9, 2024
7.0.0 Mar 20, 2023

#1599 in WebAssembly

Download history 193/week @ 2024-07-20 389/week @ 2024-07-27 27/week @ 2024-08-03 183/week @ 2024-08-10 228/week @ 2024-08-17 70/week @ 2024-08-24 80/week @ 2024-08-31 87/week @ 2024-09-07 209/week @ 2024-09-14 471/week @ 2024-09-21 147/week @ 2024-09-28 612/week @ 2024-10-05 188/week @ 2024-10-12 248/week @ 2024-10-19 119/week @ 2024-10-26 399/week @ 2024-11-02

1,007 downloads per month
Used in 2 crates

Apache-2.0 WITH LLVM-exception

3.5MB
59K 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
~767K SLoC