43 stable releases (13 major)

20.0.2 May 7, 2024
20.0.0 Apr 22, 2024
19.0.2 Apr 11, 2024
19.0.0 Mar 20, 2024
7.0.0 Mar 20, 2023

#1384 in WebAssembly

Download history 218/week @ 2024-01-25 85/week @ 2024-02-01 165/week @ 2024-02-08 300/week @ 2024-02-15 240/week @ 2024-02-22 395/week @ 2024-02-29 287/week @ 2024-03-07 359/week @ 2024-03-14 153/week @ 2024-03-21 258/week @ 2024-03-28 189/week @ 2024-04-04 370/week @ 2024-04-11 919/week @ 2024-04-18 296/week @ 2024-04-25 417/week @ 2024-05-02 304/week @ 2024-05-09

1,945 downloads per month
Used in 2 crates

Apache-2.0 WITH LLVM-exception

2MB
28K 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

~19–30MB
~503K SLoC