9 releases (breaking)

0.8.0 Jul 14, 2020
0.7.0 May 18, 2020
0.6.0 May 18, 2020
0.5.0 Feb 27, 2020
0.1.1 Dec 4, 2019

#12 in #you-re

Download history 2571/week @ 2023-12-21 3377/week @ 2023-12-28 6110/week @ 2024-01-04 18092/week @ 2024-01-11 1320/week @ 2024-01-18 984/week @ 2024-01-25 1121/week @ 2024-02-01 1139/week @ 2024-02-08 1248/week @ 2024-02-15 1343/week @ 2024-02-22 1256/week @ 2024-02-29 1207/week @ 2024-03-07 997/week @ 2024-03-14 878/week @ 2024-03-21 923/week @ 2024-03-28 916/week @ 2024-04-04

3,925 downloads per month

Apache-2.0 WITH LLVM-exception

64KB
1.5K SLoC

wit-text

A Bytecode Alliance project

A Rust crate to parse the WebAssembly Interface Types textual 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-text = "0.1.0"

You can then use the free-functions of this crate to parse a text file or in-memory string into the binary wasm representation. Note that compatibility is provided with the wast crate if you'd like to reuse the parser for other file formats as well.

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

~785KB
~17K SLoC