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

#1535 in Web programming

Download history 471/week @ 2023-12-04 731/week @ 2023-12-11 764/week @ 2023-12-18 589/week @ 2023-12-25 303/week @ 2024-01-01 774/week @ 2024-01-08 771/week @ 2024-01-15 593/week @ 2024-01-22 505/week @ 2024-01-29 800/week @ 2024-02-05 915/week @ 2024-02-12 951/week @ 2024-02-19 857/week @ 2024-02-26 1049/week @ 2024-03-04 838/week @ 2024-03-11 1077/week @ 2024-03-18

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

~1MB
~15K SLoC