149 releases (92 breaking)

new 0.107.2 May 7, 2024
0.107.0 Apr 22, 2024
0.106.0 Mar 20, 2024
0.103.0 Dec 20, 2023
0.17.0 Jul 24, 2018

#1395 in WebAssembly

Download history 68271/week @ 2024-01-23 69051/week @ 2024-01-30 76651/week @ 2024-02-06 72686/week @ 2024-02-13 81109/week @ 2024-02-20 85232/week @ 2024-02-27 78183/week @ 2024-03-05 84193/week @ 2024-03-12 90538/week @ 2024-03-19 72317/week @ 2024-03-26 98994/week @ 2024-04-02 91339/week @ 2024-04-09 87791/week @ 2024-04-16 89800/week @ 2024-04-23 77207/week @ 2024-04-30 64390/week @ 2024-05-07

337,183 downloads per month
Used in 321 crates (5 directly)

Apache-2.0 WITH LLVM-exception

4.5MB
109K 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

~7MB
~136K SLoC