#webassembly #wit

wit-walrus

Extension for the walrus crate to work with WebAssembly interface types

1 unstable release

✓ Uses Rust 2018 edition

0.1.0 Dec 2, 2019
Download history 569/week @ 2019-12-02 200/week @ 2019-12-09 424/week @ 2019-12-16 449/week @ 2019-12-23 302/week @ 2019-12-30 710/week @ 2020-01-06 586/week @ 2020-01-13 710/week @ 2020-01-20 394/week @ 2020-01-27 483/week @ 2020-02-03 514/week @ 2020-02-10 566/week @ 2020-02-17 921/week @ 2020-02-24 1007/week @ 2020-03-02 348/week @ 2020-03-09

440 downloads per month
Used in 2 crates

Apache-2.0 WITH LLVM-exception

69KB
1.5K 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

~2.5MB
~45K SLoC