17 releases (breaking)

0.13.0 Jul 8, 2024
0.12.0 Jan 21, 2021
0.11.0 Mar 2, 2020
0.10.0 Jul 10, 2019
0.5.0 Jul 26, 2018

#680 in Parser implementations

Download history 993/week @ 2024-08-07 1066/week @ 2024-08-14 1222/week @ 2024-08-21 1748/week @ 2024-08-28 1140/week @ 2024-09-04 906/week @ 2024-09-11 1093/week @ 2024-09-18 1314/week @ 2024-09-25 639/week @ 2024-10-02 312/week @ 2024-10-09 708/week @ 2024-10-16 808/week @ 2024-10-23 834/week @ 2024-10-30 538/week @ 2024-11-06 369/week @ 2024-11-13 523/week @ 2024-11-20

2,416 downloads per month
Used in 6 crates (4 directly)

MIT license

95KB
2.5K SLoC

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);
}

Dependencies

~1MB
~17K SLoC