Go to file
2018-10-15 20:45:16 +02:00
src Better reuse of function pointers in Instance 2018-10-15 20:45:16 +02:00
.gitignore First working version of the interpreter 2018-10-11 21:29:36 +02:00
Cargo.lock Added function compilation 2018-10-15 02:48:59 +02:00
Cargo.toml Added function compilation 2018-10-15 02:48:59 +02:00
LICENSE Improved README and added MIT LICENSE 2018-10-14 23:54:28 +02:00
README.md Improved README and added MIT LICENSE 2018-10-14 23:54:28 +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.

THIS PROJECT IS NOT USABLE YET, BUT WILL BE SOON 🙂

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/wapmio/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