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

#1026 in Parser implementations

Download history 173/week @ 2024-12-25 575/week @ 2025-01-01 724/week @ 2025-01-08 1774/week @ 2025-01-15 983/week @ 2025-01-22 1115/week @ 2025-01-29 1915/week @ 2025-02-05 1153/week @ 2025-02-12 781/week @ 2025-02-19 1570/week @ 2025-02-26 913/week @ 2025-03-05 1629/week @ 2025-03-12 1176/week @ 2025-03-19 1141/week @ 2025-03-26 549/week @ 2025-04-02 926/week @ 2025-04-09

4,020 downloads per month
Used in 8 crates (6 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