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

#879 in Parser implementations

Download history 1216/week @ 2024-09-20 1133/week @ 2024-09-27 456/week @ 2024-10-04 527/week @ 2024-10-11 661/week @ 2024-10-18 845/week @ 2024-10-25 814/week @ 2024-11-01 319/week @ 2024-11-08 457/week @ 2024-11-15 944/week @ 2024-11-22 859/week @ 2024-11-29 1054/week @ 2024-12-06 1192/week @ 2024-12-13 618/week @ 2024-12-20 189/week @ 2024-12-27 574/week @ 2025-01-03

2,829 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