6 releases (stable)

5.0.0 Jan 24, 2024
4.0.1 Jan 23, 2024
4.0.0 Aug 4, 2022
3.0.0 Jun 16, 2022
2.0.0 Feb 8, 2022

#94 in Web programming

Download history 21718/week @ 2024-07-23 20865/week @ 2024-07-30 21515/week @ 2024-08-06 19562/week @ 2024-08-13 20470/week @ 2024-08-20 20603/week @ 2024-08-27 21766/week @ 2024-09-03 21327/week @ 2024-09-10 21152/week @ 2024-09-17 29877/week @ 2024-09-24 24870/week @ 2024-10-01 26756/week @ 2024-10-08 25452/week @ 2024-10-15 28783/week @ 2024-10-22 23065/week @ 2024-10-29 24530/week @ 2024-11-05

106,285 downloads per month
Used in 34 crates (2 directly)

MIT license

95KB
2.5K SLoC

Weedle 2 - Electric Boogaloo

A Web IDL parser

Crates.io version Documentation MIT License

Built with 🦀🕸 by The Rust and WebAssembly Working Group.
Forked to extend the functionality beyond WebIDL needs.

About

Parses valid WebIDL definitions & produces a data structure starting from Definitions.

Usage

Cargo.toml

[dependencies]
weedle2 = "5.0.0"

src/main.rs

fn main() {
    let parsed = weedle::parse("
        interface Window {
            readonly attribute Storage sessionStorage;
        };
    ").unwrap();

    println!("{:?}", parsed);
}

Dependencies

~1MB
~19K SLoC