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

#775 in Parser implementations

Download history 520/week @ 2024-11-17 930/week @ 2024-11-24 961/week @ 2024-12-01 1080/week @ 2024-12-08 1091/week @ 2024-12-15 468/week @ 2024-12-22 198/week @ 2024-12-29 861/week @ 2025-01-05 1623/week @ 2025-01-12 1313/week @ 2025-01-19 586/week @ 2025-01-26 1890/week @ 2025-02-02 1432/week @ 2025-02-09 708/week @ 2025-02-16 1741/week @ 2025-02-23 666/week @ 2025-03-02

4,769 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