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

#1559 in WebAssembly

Download history 122/week @ 2024-05-20 151/week @ 2024-05-27 122/week @ 2024-06-03 92/week @ 2024-06-10 151/week @ 2024-06-17 170/week @ 2024-06-24 31/week @ 2024-07-01 57/week @ 2024-07-08 132/week @ 2024-07-15 56/week @ 2024-07-22 317/week @ 2024-07-29 100/week @ 2024-08-05 168/week @ 2024-08-12 85/week @ 2024-08-19 117/week @ 2024-08-26 94/week @ 2024-09-02

473 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

~15MB
~331K SLoC