#wasm-interface #binary-format #validation #type #bytecode

wit-validator

Validator for the WebAssembly Interface Types binary format

7 releases

0.2.1 Jul 14, 2020
0.2.0 May 18, 2020
0.1.4 May 18, 2020
0.1.2 Feb 27, 2020
0.1.1 Dec 3, 2019

#64 in #wasm-interface

Download history 5357/week @ 2023-11-30 5498/week @ 2023-12-07 5616/week @ 2023-12-14 2570/week @ 2023-12-21 3377/week @ 2023-12-28 6111/week @ 2024-01-04 18090/week @ 2024-01-11 1320/week @ 2024-01-18 985/week @ 2024-01-25 1122/week @ 2024-02-01 1139/week @ 2024-02-08 1248/week @ 2024-02-15 1344/week @ 2024-02-22 1258/week @ 2024-02-29 1218/week @ 2024-03-07 781/week @ 2024-03-14

4,860 downloads per month

Apache-2.0 WITH LLVM-exception

25KB
491 lines

wit-validator

A Bytecode Alliance project

A Rust crate to validate the WebAssembly Interface Types binary format.

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-validator = "0.1.0"

This crate currently only provides the functionality to validate a WebAssembly Interface Types custom section, and it must also be given the full wasm module. This is moreso meant to be a sort of reference validator rather than one ready to integrate elsewhere, since it doesn't actually expose any results of typechecking, it just validates that the interface types section, if present, is valid.

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

~1.5MB
~30K SLoC