#wasm-interface #type #extension #walrus

wit-walrus

Extension for the walrus crate to work with WebAssembly interface types

6 releases (breaking)

0.6.0 Apr 15, 2021
0.5.0 Jul 14, 2020
0.4.0 May 18, 2020
0.3.0 May 18, 2020
0.1.0 Dec 2, 2019

#58 in #wasm-interface

Download history 5361/week @ 2023-12-02 5410/week @ 2023-12-09 5166/week @ 2023-12-16 2182/week @ 2023-12-23 4290/week @ 2023-12-30 6397/week @ 2024-01-06 16428/week @ 2024-01-13 1088/week @ 2024-01-20 997/week @ 2024-01-27 1118/week @ 2024-02-03 1244/week @ 2024-02-10 1175/week @ 2024-02-17 1412/week @ 2024-02-24 1209/week @ 2024-03-02 1118/week @ 2024-03-09 787/week @ 2024-03-16

4,750 downloads per month

Apache-2.0 WITH LLVM-exception

50KB
1K SLoC

wit-walrus

A Bytecode Alliance project

A Rust crate integrate WebAssembly Interface Types with the walrus crate.

Crates.io version Download docs.rs docs

Note: WebAssembly Interface Types are experimental and subject to a good deal of change. It's not recommended to rely on this if you're not comfortable with some breakage.

Usage

First you'll want to add this crate to your Cargo.toml:

[dependencies]
wit-walrus = "0.1.0"

You'll then want to register the on_parse function in this crate when parsing a wasm blob into a walrus module. Afterwards you can extract the WasmInterfaceTypes custom section and you should be good to go!

License

This project is licensed under the Apache 2.0 license with the LLVM exception. See LICENSE for more details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

Dependencies

~4MB
~82K SLoC