113 releases (60 stable)

new 21.0.1 May 22, 2024
20.0.2 May 7, 2024
19.0.2 Apr 11, 2024
19.0.0 Mar 20, 2024
0.0.0 Jul 18, 2019

#923 in WebAssembly

Download history 22828/week @ 2024-02-04 18294/week @ 2024-02-11 22251/week @ 2024-02-18 23019/week @ 2024-02-25 23229/week @ 2024-03-03 24199/week @ 2024-03-10 26559/week @ 2024-03-17 19998/week @ 2024-03-24 23303/week @ 2024-03-31 23413/week @ 2024-04-07 21164/week @ 2024-04-14 26811/week @ 2024-04-21 21967/week @ 2024-04-28 26097/week @ 2024-05-05 25484/week @ 2024-05-12 21463/week @ 2024-05-19

96,899 downloads per month
Used in 163 crates (36 directly)

Apache-2.0 WITH LLVM-exception

45K SLoC


A Bytecode Alliance project

A library providing a common implementation of WASI hostcalls for re-use in any WASI-enabled runtime.

Crates.io version Download docs.rs docs

The wasi-common crate will ultimately serve as a library providing a common implementation of WASI hostcalls for re-use in any WASI (and potentially non-WASI) runtimes such as Wasmtime and Lucet.

The library is an adaption of lucet-wasi crate from the Lucet project, and it is currently based on 40ae1df git revision.

Please note that the library requires Rust compiler version at least 1.37.0.

Supported syscalls


In our *nix implementation, we currently support the entire WASI API with the exception of the proc_raise hostcall, as it is expected to be dropped entirely from WASI.


In our Windows implementation, we currently support the minimal subset of WASI API which allows for running the very basic "Hello world!" style WASM apps. More coming shortly, so stay tuned!

Development hints

When testing the crate, you may want to enable and run full wasm32 integration testsuite. This requires wasm32-wasi target installed which can be done as follows using rustup

rustup target add wasm32-wasi

Now, you should be able to run the integration testsuite by running cargo test on the test-programs package with test-programs/test_programs feature enabled:

cargo test --features test-programs/test_programs --package test-programs


~394K SLoC