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

#498 in Web programming

Download history 12847/week @ 2023-11-04 13796/week @ 2023-11-11 9721/week @ 2023-11-18 13235/week @ 2023-11-25 13508/week @ 2023-12-02 11156/week @ 2023-12-09 12494/week @ 2023-12-16 4994/week @ 2023-12-23 9603/week @ 2023-12-30 11037/week @ 2024-01-06 13656/week @ 2024-01-13 15380/week @ 2024-01-20 17518/week @ 2024-01-27 16857/week @ 2024-02-03 16852/week @ 2024-02-10 13531/week @ 2024-02-17

66,640 downloads per month
Used in 22 crates (via uniffi_udl)

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
~17K SLoC