wasmer-cli
This crate is the Wasmer CLI.
The recommended way to install wasmer
is via the wasmer-installer.
However, you can also install wasmer
via Cargo (you will need to specify the compilers to use):
Or by building it inside the codebase:
Features
The Wasmer supports the following features:
wat
(default): support for executing WebAssembly text files.wast
(default): support for running wast test files.cache
(default): support or automatically caching compiled artifacts.wasi
(default): support for WASI.singlepass
: support for the Singlepass compiler.cranelift
: support for the Cranelift compiler.llvm
: support for the LLVM compiler.
CLI commands
Once you have Wasmer installed, you can start executing WebAssembly files easily:
Get the current Wasmer version:
Execute a WebAssembly file:
Compile a WebAssembly file:
Run a compiled WebAssembly file (fastest):