61 releases (stable)

6.0.0-beta.1 Mar 7, 2025
5.0.5-rc1 Jan 3, 2025
5.0.4 Dec 17, 2024
5.0.2 Nov 25, 2024
1.0.1 Jan 16, 2021

#1471 in WebAssembly

Download history 282/week @ 2024-12-09 359/week @ 2024-12-16 100/week @ 2024-12-23 180/week @ 2024-12-30 184/week @ 2025-01-06 261/week @ 2025-01-13 168/week @ 2025-01-20 150/week @ 2025-01-27 224/week @ 2025-02-03 274/week @ 2025-02-10 369/week @ 2025-02-17 391/week @ 2025-02-24 311/week @ 2025-03-03 219/week @ 2025-03-10 216/week @ 2025-03-17 231/week @ 2025-03-24

1,001 downloads per month

MIT license

7MB
140K SLoC

wasmer-cli Build Status Join Wasmer Slack MIT License

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):

cargo install wasmer-cli --features "singlepass,cranelift"

Or by building it inside the codebase:

cargo build --release --features "singlepass,cranelift"

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:

wasmer -V

Execute a WebAssembly file:

wasmer run myfile.wasm

Compile a WebAssembly file:

wasmer compile myfile.wasm -o myfile.wasmu

Run a compiled WebAssembly file (fastest):

wasmer run myfile.wasmu

Dependencies

~51–71MB
~1.5M SLoC