weedle2

Crates.ioweedle2
lib.rsweedle2
version5.0.0
sourcesrc
created_at2022-02-08 14:36:33.326848
updated_at2024-01-24 15:58:52.996691
descriptionA WebIDL Parser
homepagehttps://github.com/mozilla/uniffi-rs/tree/main/weedle2
repositoryhttps://github.com/mozilla/uniffi-rs
max_upload_size
id529132
size96,190
Sammy Khamis (skhamis)

documentation

https://docs.rs/weedle2

README

Weedle 2 - Electric Boogaloo

A Web IDL parser

Crates.io version Documentation MIT License

Built with 🦀🕸 by The Rust and WebAssembly Working Group.
Forked to extend the functionality beyond WebIDL needs.

About

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

Usage

Cargo.toml

[dependencies]
weedle2 = "5.0.0"

src/main.rs

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

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

cargo fmt