6 releases

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.6-linera.3 Aug 29, 2024
4.3.1-linera.2 Jun 7, 2024

#42 in WebAssembly

Download history 199/week @ 2024-08-24 181/week @ 2024-08-31 209/week @ 2024-09-07 313/week @ 2024-09-14 504/week @ 2024-09-21 163/week @ 2024-09-28 369/week @ 2024-10-05 221/week @ 2024-10-12 407/week @ 2024-10-19 516/week @ 2024-10-26 971/week @ 2024-11-02 807/week @ 2024-11-09 869/week @ 2024-11-16 1786/week @ 2024-11-23 2349/week @ 2024-11-30 606/week @ 2024-12-07

5,708 downloads per month
Used in 11 crates (2 directly)

MIT license

1.5MB
42K SLoC

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

This crate contains a compiler implementation based on the Singlepass linear compiler.

Usage

use wasmer::{Store, EngineBuilder};
use wasmer_compiler_singlepass::Singlepass;

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

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

When to use Singlepass

Singlepass is designed to emit compiled code at linear time, as such is not prone to JIT bombs and also offers great compilation performance orders of magnitude faster than wasmer-compiler-cranelift and wasmer-compiler-llvm, however with a bit slower runtime speed.

The fact that singlepass is not prone to JIT bombs and offers a very predictable compilation speed makes it ideal for blockchains and other systems where fast and consistent compilation times are very critical.

Dependencies

~9–18MB
~265K SLoC