30 releases (16 breaking)

0.17.1 Jun 24, 2020
0.16.2 Mar 12, 2020
0.12.0 Dec 19, 2019
0.11.0 Nov 24, 2019
0.2.0 Feb 25, 2019

#1570 in WebAssembly

Download history 63/week @ 2024-07-21 310/week @ 2024-07-28 107/week @ 2024-08-04 156/week @ 2024-08-11 93/week @ 2024-08-18 125/week @ 2024-08-25 84/week @ 2024-09-01 97/week @ 2024-09-08 71/week @ 2024-09-15 188/week @ 2024-09-22 155/week @ 2024-09-29 24/week @ 2024-10-06 63/week @ 2024-10-13 72/week @ 2024-10-20 97/week @ 2024-10-27 67/week @ 2024-11-03

299 downloads per month
Used in 11 crates (5 directly)

MIT license

640KB
14K SLoC

Wasmer logo

Build Status License Join the Wasmer Community Number of downloads from crates.io Read our API documentation

Wasmer Cranelift backend

Wasmer is a standalone JIT WebAssembly runtime, aiming to be fully compatible with Emscripten, Rust and Go. Learn more.

This crate represents the Cranelift backend integration for Wasmer.

Usage

Usage in Wasmer Standalone

If you are using the wasmer CLI, you can specify the backend with:

wasmer run program.wasm --backend=cranelift

Usage in Wasmer Embedded

If you are using Wasmer Embedded, you can specify the Cranelift backend to the compile_with function:

use wasmer_clif_backend::CraneliftCompiler;

// ...
let module = wasmer_runtime_core::compile_with(&wasm_binary[..], &CraneliftCompiler::new());

Dependencies

~16MB
~337K SLoC