weedle4

Crates.ioweedle4
lib.rsweedle4
version0.4.0
sourcesrc
created_at2023-05-03 17:35:59.509961
updated_at2023-05-03 17:35:59.509961
descriptionA WebIDL Parser
homepagehttps://github.com/sagudev/weedle4
repositoryhttps://github.com/sagudev/weedle4
max_upload_size
id855633
size101,039
Samson (sagudev)

documentation

https://docs.rs/weedle4

README

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);
}
Commit count: 25

cargo fmt