165 releases (97 breaking)

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

#1570 in WebAssembly

Download history 79389/week @ 2025-01-19 65944/week @ 2025-01-26 83059/week @ 2025-02-02 85126/week @ 2025-02-09 74162/week @ 2025-02-16 70091/week @ 2025-02-23 70261/week @ 2025-03-02 76241/week @ 2025-03-09 64755/week @ 2025-03-16 71905/week @ 2025-03-23 58611/week @ 2025-03-30 69301/week @ 2025-04-06 53457/week @ 2025-04-13 67870/week @ 2025-04-20 65964/week @ 2025-04-27 57495/week @ 2025-05-04

247,953 downloads per month
Used in 374 crates (5 directly)

Apache-2.0 WITH LLVM-exception

5MB
116K SLoC

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.


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.

Dependencies

~8MB
~154K SLoC