gecko-dev/third_party/rust/weedle
David Teller 260e07c0c7 Bug 1520001 - mach rust vendor;r=arai,smaug
Depends on D34130

Differential Revision: https://phabricator.services.mozilla.com/D34131

--HG--
rename : third_party/rust/ascii-canvas/LICENSE-APACHE => third_party/rust/itertools-0.7.6/LICENSE-APACHE
rename : third_party/rust/petgraph/LICENSE-MIT => third_party/rust/itertools-0.7.6/LICENSE-MIT
rename : third_party/rust/itertools/Makefile => third_party/rust/itertools-0.7.6/Makefile
rename : third_party/rust/itertools/custom.css => third_party/rust/itertools-0.7.6/custom.css
extra : moz-landing-system : lando
2019-06-10 14:09:06 +00:00
..
src
tests
.cargo-checksum.json
Cargo.toml
LICENSE.md
README.md

README.md

Weedle - A WebIDL Parser

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

Basic Usage

In Cargo.toml

[dependencies]
weedle = "0.5.0"

Then, in src/main.rs

extern crate weedle;

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