wasmer-compiler-cranelift-near

Crates.iowasmer-compiler-cranelift-near
lib.rswasmer-compiler-cranelift-near
version1.0.1
sourcesrc
created_at2021-02-05 00:02:36.639124
updated_at2021-02-05 00:02:36.639124
descriptionCranelift compiler for Wasmer WebAssembly runtime
homepage
repositoryhttps://github.com/wasmerio/wasmer
max_upload_size
id350781
size264,593
Nikolay Igotti (olonho)

documentation

https://docs.rs/wasmer-compiler-cranelift/

README

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, JIT};
use wasmer_compiler_cranelift::Cranelift;

let compiler = Cranelift::new();
// Put it into an engine and add it to the store
let store = Store::new(&JIT::new(compiler).engine());

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.

Commit count: 17039

cargo fmt