Skip to content

Releases: wasmerio/wasmer

0.4.0 (wasmer + wapm)

23 Apr 01:44
Compare
Choose a tag to compare

Wasmer now ships with wapm 🎉.
WAPM is a Package Manager for WebAssembly that will improve your experience for installing, using and publishing WebAssembly modules. Here's a video showcasing it: https://www.youtube.com/watch?v=qDRcHIBFu0c

Apart of shipping with wapm, the stability of the runtime has been improved significantly and support for WASI is more mature.

Changelog

  • #383 Hook up wasi exit code to wasmer cli.
  • #382 Improve error message on --backend flag to only suggest currently enabled backends
  • #381 Allow retrieving propagated user errors.
  • #379 Fix small return types from imported functions.
  • #371 Add more Debug impl for WASI types
  • #368 Fix issue with write buffering
  • #343 Implement preopened files for WASI and fix aligment issue when accessing WASI memory
  • #367 Add caching support to the LLVM backend.
  • #366 Remove UserTrapper trait to fix #365.
  • #348 Refactor internal runtime ↔️ backend abstraction.
  • #355 Misc changes to Cargo.tomls for publishing
  • #352 Bump version numbers to 0.3.0
  • #351 Add hidden option to specify wasm program name (can be used to improve error messages)
  • #350 Enforce that CHANGELOG.md is updated through CI.
  • #349 Add CHANGELOG.md.

0.3.0

12 Apr 00:57
Compare
Choose a tag to compare

Wasmer now supports WASI 🎉.
The emscripten implementation has improved vastly, and now Wasmer can run PHP, SQLite and Lua (check them on the examples dir on this repo)
The wasmer CLI now ships with three different backends: Singlepass (fast compilation), Cranelift (default) and LLVM (fast runtime). You can try it with wasmer run --backend=singlepass ...
We also improved the APIs and shipped tons of bug fixes and improvements.

Changelog

  • Use new singlepass backend (with the --backend=singlepass when running Wasmer) #276 #288 #344
  • Actually catch traps/panics/etc when using a typed func. #338
  • Fixed func_index in debug mode #325
  • Add validate subcommand to validate Wasm files #323
  • Upgrade to Cranelift 0.3.0 #321
  • Add Export and GlobalDescriptor to Runtime API #319
  • Cleanup warnings #310
  • Add support for WASI 🎉 #299 #300 #301 #303 #304 #305 #306 #307
  • Add extend to imports #286
  • Add versioning to cache #278
  • Setup bors #250

Emscripten

  • Allow resize_heap to grow heap in emscripten  #335
  • Fix lstat64; heap size; and stat #332
  • Implement strftime #330
  • Improved syscalls #329 #328 #326 #289 #285
  • Add more stubs for pthreading, exceptions, and some invokes #314
  • Auto generate null funcs #295
  • Added support for symbol maps to improve debugging #294
  • Fix arg passing to getcwd sys call #292
  • Fix alignment check on pointer #291

Runtime C API

  • Split lib.rs into modules #312
  • Implement wasmer_export_to_memory function #296
  • Mirror the debug and llvm features #280
  • Implement wasmer_module_serialize and wasmer_module_deserialize #271
  • Add an API to update vm::Ctx.data #261
  • Fix the imports length #260
  • Fix C API table/global/memory imports #227

Docs

  • Add FreeBSD installation instructions for CMake #315
  • Add basic README to libs #311
  • Fix typo #256
  • Improve runtime c api #242

0.2.1

28 Feb 01:38
Compare
Choose a tag to compare

This version fixes some small issues, and update the hashing algorithm for caching to be crypto-secure.

Changelog

  • Updated the hashing algorithm to be crypto (blake2b) #214
  • Fix Emscripten read/write casting #222
  • [Windows] Commit virtual memory before copying #212

0.2.0

25 Feb 22:01
Compare
Choose a tag to compare

The version 0.2.0 moves the WebAssembly wasmer runtime forward making it more stable, with a more mature API and preparing the software to be ready in production environments.
It also accelerates the startup time when running a WebAssembly module by an order of magnitude.

This version also ships with experimental Windows support (all WebAssembly spectests pass, emscripting bindings are on the works).

Changelog

  • Completely refactored our codebase, moving the runtime, Cranelift backend and emscripten into it's own isolated libs #80
  • Added Cache #134 #198 #200, so WebAssembly compiled modules can be loaded much faster (100x speedup on compile time)
  • Added integration tests #109 #91
  • Improved support for Windows #51 #94 #143 #144 #138 #175
  • Improved function signature checks #155
  • Improved imports API #120 #130
  • Naive short circuiting implementation for user panics and results #167
  • Improved traps support #103
  • Use parallel compilation for cranelift backend #209
  • Improved debug #61 #67 #129 #204
  • Added benchmark runner #201

Breaking changes

The breaking changes affect mainly to other libraries that were depending in any of the crates for embedding Wasmer in their systems.
You can check an example PR with all the changes included here: https://github.com/wasmerio/wasmer-rust-example/pull/5/files

Summary:

  • Now the imported functions take Ctx as first argument instead of the last one #171
// Previous (0.1.x)
fn print_num(n: i32, ctx: &mut vm::Ctx) {
    println!("print_num({})", n);
}

// Now (>= 0.2.0)
fn print_num(ctx: &mut vm::Ctx, n: i32) {
    println!("print_num({})", n);
}
  • The imported function in imports! should use now the func! macro.
// Previous (0.1.x)
let import_object = imports! {
    "env" => {
        "print_num" => print_num<[i32] -> []>,
    },
};

// Now (>= 0.2.0)
let import_object = imports! {
    "env" => {
        // The func! macro will automatically detect the signature
        "print_num" => func!(print_num),
    },
};
  • Access to memory slices is now safe
// Previous (0.1.x)
let memory = ctx.memory(0);
let str_slice = &memory[ptr as usize..(ptr + len) as usize];


// Now (>= 0.2.0)
let memory = ctx.memory(0);
let str_slice: Vec<_> = memory.view()[ptr as usize..(ptr + len) as usize].iter().map(|cell| cell.get()).collect();

Other

0.1.4

22 Dec 06:48
db24e8a
Compare
Choose a tag to compare
Merge pull request #52 from wasmerio/fix/emscripten-env

Fix support for env vars (put, set, unset)

0.1.3

19 Dec 18:12
04378d5
Compare
Choose a tag to compare
Merge pull request #53 from wasmerio/feature/run-lua-wasm

Running Lua

0.1.2

07 Dec 04:44
Compare
Choose a tag to compare

Changelog

First version capable of running nginx

0.1.1

06 Dec 00:21
Compare
Choose a tag to compare

Changelog

  • Implemented almost all the syscalls required to execute Nginx
  • Added self-update command
  • Improved installer
  • Recover properly from stack overflows

0.1.0

23 Nov 15:37
3dc9119
Compare
Choose a tag to compare

First working version of wasmer.