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

#641 in Parser implementations

Download history 805/week @ 2024-07-21 997/week @ 2024-07-28 764/week @ 2024-08-04 1142/week @ 2024-08-11 1109/week @ 2024-08-18 1449/week @ 2024-08-25 1610/week @ 2024-09-01 851/week @ 2024-09-08 1032/week @ 2024-09-15 1340/week @ 2024-09-22 966/week @ 2024-09-29 216/week @ 2024-10-06 686/week @ 2024-10-13 625/week @ 2024-10-20 910/week @ 2024-10-27 833/week @ 2024-11-03

3,061 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