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

#1438 in WebAssembly

Download history 95397/week @ 2024-08-09 83657/week @ 2024-08-16 87345/week @ 2024-08-23 93970/week @ 2024-08-30 93243/week @ 2024-09-06 84843/week @ 2024-09-13 98541/week @ 2024-09-20 89981/week @ 2024-09-27 99299/week @ 2024-10-04 97648/week @ 2024-10-11 103843/week @ 2024-10-18 92134/week @ 2024-10-25 94427/week @ 2024-11-01 77693/week @ 2024-11-08 81250/week @ 2024-11-15 75020/week @ 2024-11-22

342,822 downloads per month
Used in 362 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