165 releases (97 breaking)

new 0.112.3 Nov 5, 2024
0.112.1 Sep 24, 2024
0.110.1 Jul 22, 2024
0.106.0 Mar 20, 2024
0.17.0 Jul 24, 2018

#1395 in WebAssembly

Download history 91834/week @ 2024-07-18 86966/week @ 2024-07-25 81897/week @ 2024-08-01 92467/week @ 2024-08-08 87160/week @ 2024-08-15 86143/week @ 2024-08-22 90323/week @ 2024-08-29 95707/week @ 2024-09-05 90507/week @ 2024-09-12 92508/week @ 2024-09-19 91951/week @ 2024-09-26 96820/week @ 2024-10-03 97482/week @ 2024-10-10 102620/week @ 2024-10-17 97505/week @ 2024-10-24 93096/week @ 2024-10-31

409,781 downloads per month
Used in 373 crates (5 directly)

Apache-2.0 WITH LLVM-exception

5MB
114K 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 main function of this module is translate_module.

Dependencies

~8MB
~151K SLoC