#wasi #wasm-module #component #wit #preview2

app wasi-update

A simple tool to convert a WebAssembly module to a WASI component

4 releases

0.1.5 May 10, 2024
0.1.2 Apr 19, 2024
0.1.1 Feb 17, 2024
0.1.0 Feb 17, 2024

#42 in WebAssembly

Download history 109/week @ 2024-02-11 113/week @ 2024-02-18 39/week @ 2024-02-25 2/week @ 2024-03-03 8/week @ 2024-03-10 31/week @ 2024-03-31 114/week @ 2024-04-14 93/week @ 2024-04-21 2/week @ 2024-04-28 125/week @ 2024-05-05 18/week @ 2024-05-12 15/week @ 2024-05-19

161 downloads per month

Apache-2.0 WITH LLVM-exception

285KB
504 lines

WASI Update

A simple tool to convert a WebAssembly module (wasm32-wasi, wasm32-freestanding) to a WASI component (component model, WASI-preview2).

Installation

Precompiled binaries are available for:

  • Linux/x86_64 (.tar.gz and .deb)
  • Linux/aarch64
  • MacOS/aarch64
  • Windows/x86_64
  • Windows/aarch64
  • WebAssembly (WASI)

Or if you really want to compile from source, install Rust and type:

rustup target add wasm32-unknown-unknown
cargo install wasi-update

Usage

Give the tool the WebAssembly module to process, and output file name, and that's it!

A simple tool to convert a WebAssembly module to a WASI component.

Usage: wasi-update --input <FILE> --output <FILE>

Options:
  -i, --input <FILE>   Input file (regular module)
  -o, --output <FILE>  Output file (component)
  -h, --help           Print help
  -V, --version        Print version

Dependencies

~7–17MB
~231K SLoC