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

#1440 in WebAssembly

Download history 82498/week @ 2024-07-29 82693/week @ 2024-08-05 97307/week @ 2024-08-12 82042/week @ 2024-08-19 90641/week @ 2024-08-26 95836/week @ 2024-09-02 91060/week @ 2024-09-09 87471/week @ 2024-09-16 95699/week @ 2024-09-23 93860/week @ 2024-09-30 94950/week @ 2024-10-07 98550/week @ 2024-10-14 104409/week @ 2024-10-21 87136/week @ 2024-10-28 96644/week @ 2024-11-04 71457/week @ 2024-11-11

363,230 downloads per month
Used in 369 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