1 unstable release

0.17.0 Jul 28, 2020

#4 in #aot

Download history 58/week @ 2021-10-06 118/week @ 2021-10-13 50/week @ 2021-10-20 73/week @ 2021-10-27 129/week @ 2021-11-03 126/week @ 2021-11-10 65/week @ 2021-11-17 108/week @ 2021-11-24 81/week @ 2021-12-01 103/week @ 2021-12-08 198/week @ 2021-12-15 58/week @ 2021-12-22 94/week @ 2021-12-29 17/week @ 2022-01-05 81/week @ 2022-01-12 140/week @ 2022-01-19

343 downloads per month

MIT license

635KB
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

~13MB
~281K SLoC