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

#1444 in WebAssembly

Download history 8/week @ 2024-01-01 73/week @ 2024-01-08 64/week @ 2024-01-15 39/week @ 2024-01-22 10/week @ 2024-01-29 36/week @ 2024-02-05 73/week @ 2024-02-12 68/week @ 2024-02-19 160/week @ 2024-02-26 120/week @ 2024-03-04 129/week @ 2024-03-11 120/week @ 2024-03-18 91/week @ 2024-03-25 274/week @ 2024-04-01 84/week @ 2024-04-08 130/week @ 2024-04-15

597 downloads per month
Used in 10 crates (4 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

~15MB
~324K SLoC