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

#607 in WebAssembly

Download history 384/week @ 2022-06-03 128/week @ 2022-06-10 318/week @ 2022-06-17 240/week @ 2022-06-24 143/week @ 2022-07-01 109/week @ 2022-07-08 169/week @ 2022-07-15 187/week @ 2022-07-22 194/week @ 2022-07-29 330/week @ 2022-08-05 257/week @ 2022-08-12 167/week @ 2022-08-19 117/week @ 2022-08-26 221/week @ 2022-09-02 334/week @ 2022-09-09 136/week @ 2022-09-16

871 downloads per month
Used in 7 crates (via wasmer-runtime-near)

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

~12MB
~277K SLoC