58 breaking releases

0.73.0 Apr 5, 2021
0.72.0 Mar 16, 2021
0.71.0 Mar 5, 2021
0.68.0 Nov 5, 2020
0.17.0 Jul 24, 2018

#139 in #webassembly

Download history 7692/week @ 2021-01-12 7744/week @ 2021-01-19 8457/week @ 2021-01-26 8311/week @ 2021-02-02 7927/week @ 2021-02-09 9636/week @ 2021-02-16 11499/week @ 2021-02-23 11289/week @ 2021-03-02 13284/week @ 2021-03-09 11501/week @ 2021-03-16 12889/week @ 2021-03-23 9881/week @ 2021-03-30 12078/week @ 2021-04-06 10740/week @ 2021-04-13 9760/week @ 2021-04-20 9816/week @ 2021-04-27

41,962 downloads per month
Used in 67 crates (6 directly)

Apache-2.0 WITH LLVM-exception

4MB
88K SLoC

This crate performs the translation from a wasm module in binary format to the in-memory form of the Cranelift IR.

If you're looking for a complete WebAssembly implementation that uses this library, see Wasmtime.


lib.rs:

Performs translation from a wasm module in binary format to the in-memory form of Cranelift IR. More particularly, it translates the code of all the functions bodies and interacts with an environment implementing the ModuleEnvironment trait to deal with tables, globals and linear memory.

The crate provides a DummyEnvironment struct that will allow to translate the code of the functions but will fail at execution.

The main function of this module is translate_module.

Dependencies

~2.2–3MB
~64K SLoC