src | ||
.gitignore | ||
.travis.yml | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
wasmer - WebAssembly runtime
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 🙂
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