weedle

Crates.ioweedle
lib.rsweedle
version0.13.0
sourcesrc
created_at2018-04-29 08:35:54.711442
updated_at2024-07-08 17:44:23.287201
descriptionA WebIDL Parser
homepagehttps://github.com/rustwasm/weedle
repositoryhttps://github.com/rustwasm/weedle
max_upload_size
id62972
size245,778
Alex Crichton (alexcrichton)

documentation

https://docs.rs/weedle

README

Weedle

A Web IDL parser

Build Status Crates.io version Download docs.rs docs

API Docs | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

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

Usage

Cargo.toml

[dependencies]
weedle = "0.9.0"

src/main.rs

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

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

cargo fmt