16 releases (breaking)

0.12.0 Jan 21, 2021
0.11.0 Mar 2, 2020
0.10.0 Jul 10, 2019
0.8.0 Sep 16, 2018
0.5.0 Jul 26, 2018

#548 in WebAssembly

Download history 703/week @ 2022-12-01 1536/week @ 2022-12-08 626/week @ 2022-12-15 868/week @ 2022-12-22 763/week @ 2022-12-29 679/week @ 2023-01-05 649/week @ 2023-01-12 1103/week @ 2023-01-19 1059/week @ 2023-01-26 1362/week @ 2023-02-02 507/week @ 2023-02-09 1104/week @ 2023-02-16 644/week @ 2023-02-23 684/week @ 2023-03-02 932/week @ 2023-03-09 578/week @ 2023-03-16

3,002 downloads per month
Used in 6 crates (4 directly)

MIT license

93KB
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

~720KB
~14K SLoC