#wasm-engine #wasm-runtime #compiler #cranelift

no-std linera-wasmer-compiler-cranelift

Cranelift compiler for Wasmer WebAssembly runtime

6 releases

new 4.4.0-linera.7 Mar 26, 2025
4.4.0-linera.6 Nov 1, 2024
4.4.0-linera.5 Oct 8, 2024
4.3.6-linera.4 Sep 24, 2024
4.3.1-linera.2 Jun 7, 2024

#123 in WebAssembly

Download history 987/week @ 2024-12-06 825/week @ 2024-12-13 233/week @ 2024-12-20 114/week @ 2024-12-27 376/week @ 2025-01-03 448/week @ 2025-01-10 664/week @ 2025-01-17 285/week @ 2025-01-24 821/week @ 2025-01-31 1046/week @ 2025-02-07 541/week @ 2025-02-14 533/week @ 2025-02-21 533/week @ 2025-02-28 549/week @ 2025-03-07 680/week @ 2025-03-14 912/week @ 2025-03-21

2,730 downloads per month
Used in 7 crates (via linera-wasmer)

MIT license

755KB
16K SLoC

wasmer-compiler-cranelift Build Status Join Wasmer Slack MIT License crates.io

This crate contains a compiler implementation based on Cranelift.

Usage

use wasmer::{Store, EngineBuilder};
use wasmer_compiler_cranelift::Cranelift;

let compiler = Cranelift::new();
let mut store = Store::new(compiler);

Note: you can find a full working example using Cranelift compiler here.

When to use Cranelift

We recommend using this compiler crate only for development proposes. For production we recommend using wasmer-compiler-llvm as it offers a much better runtime speed (50% faster on average).

Acknowledgments

This project borrowed some of the function lowering from cranelift-wasm.

Please check Wasmer ATTRIBUTIONS to further see licenses and other attributions of the project.

Dependencies

~15–24MB
~404K SLoC