1 unstable release

0.4.0 May 3, 2023

MIT license

99KB
2.5K SLoC

Weedle 4 - Focal Coala

A Web IDL parser

Crates.io version Documentation MIT License

Built with 🦀🕸 by The Rust and WebAssembly Working Group.
Forked with [weedle2 patches](https://github.com/mozilla/uniffi-rs/tree/dc524271245c5f1e6b6113e6c201acb5e21da111/weedle2) and automated webref test to make sure that it can always read all latest web(idl) files.

About

Parses valid WebIDL definitions & produces a data structure starting from Definitions.

Usage

Cargo.toml

[dependencies]
weedle4 = "0.4.0"

src/main.rs

fn main() {
    let parsed = weedle::parse("
        interface Window {
            readonly attribute Storage sessionStorage;
        };
    ").unwrap();

    println!("{:?}", parsed);
}

Dependencies

~1MB
~19K SLoC