Go to file
2018-10-19 01:31:31 +02:00
spectests Added f32/f64 br_if tests 2018-10-19 01:31:31 +02:00
src Added f32/f64 br_if tests 2018-10-19 01:31:31 +02:00
.gitignore First working version of the interpreter 2018-10-11 21:29:36 +02:00
.travis.yml Added travis 2018-10-16 18:20:01 +02:00
Cargo.lock Added ImportObject structure. Added integration tests 2018-10-17 16:08:51 +02:00
Cargo.toml Added automatic test generator from wasm spec 2018-10-19 01:29:12 +02:00
LICENSE Improved README and added MIT LICENSE 2018-10-14 23:54:28 +02:00
README.md Fixed README links 2018-10-17 17:21:11 +02:00

wasmer - WebAssembly runtime

Build Status Latest Version License

wasmer is a Standalone JIT-style runtime for WebAsssembly code.

The Cranelift compiler is used to compile WebAssembly to native machine code. Once compiled, there are no complex interactions between the application and the runtime (unlike jit compilers, like v8) to reduce surface area for vulnerabilities.

Documentation (crates.io).

Usage

It can load both the standard binary format (.wasm), and the text format defined by the WebAssembly reference interpreter (.wat).

Once installed, you will be able to run:

wasmer run my_wasm_file.wasm

Building & Running

To build this project you will need Rust and Cargo.

# checkout code and associated submodules
git clone https://github.com/wafoundation/wasmer.git
cd wasmer

# install tools
# make sure that `python` is accessible.
cargo install

Testing

Tests can be run with:

cargo test

Principles

Wasmer is an open project guided by strong principles, aiming to be modular, flexible and fast. It is open to the community to help set its direction.

  • Modular: the project includes lots of components that have well-defined functions and APIs that work together.
  • Tested: All WebAssembly spec test cases should be covered.
  • Developer focused: The APIs are intended to be functional and useful to build powerful tools.
  • Fast: it should be as fast as possible.

License

MIT/Apache-2.0