51 breaking releases

0.66.0 Jul 16, 2020
0.64.0 Jun 3, 2020
0.62.0 Mar 31, 2020
0.52.0 Dec 18, 2019
0.17.0 Jul 24, 2018

#47 in #webassembly

Download history 4226/week @ 2020-04-14 4863/week @ 2020-04-21 3949/week @ 2020-04-28 4445/week @ 2020-05-05 4762/week @ 2020-05-12 3075/week @ 2020-05-19 3386/week @ 2020-05-26 3932/week @ 2020-06-02 3562/week @ 2020-06-09 3885/week @ 2020-06-16 3771/week @ 2020-06-23 3623/week @ 2020-06-30 3642/week @ 2020-07-07 3673/week @ 2020-07-14 3715/week @ 2020-07-21 3354/week @ 2020-07-28

16,713 downloads per month
Used in 34 crates (6 directly)

Apache-2.0 WITH LLVM-exception

3MB
65K 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

~1.9–2.6MB
~54K SLoC