build weedle

A WebIDL Parser

14 releases (9 breaking)

0.10.0 Jul 10, 2019
0.8.0 Sep 16, 2018
0.5.0 Jul 26, 2018

#22 in Parser implementations

Download history 1274/week @ 2019-03-27 1207/week @ 2019-04-03 1393/week @ 2019-04-10 1339/week @ 2019-04-17 1489/week @ 2019-04-24 1558/week @ 2019-05-01 1614/week @ 2019-05-08 1757/week @ 2019-05-15 2038/week @ 2019-05-22 2219/week @ 2019-05-29 2242/week @ 2019-06-05 2609/week @ 2019-06-12 2411/week @ 2019-06-19 2475/week @ 2019-06-26 2011/week @ 2019-07-03

8,294 downloads per month
Used in 223 crates (3 directly)

MIT license

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

~668KB
~13K SLoC