NOTE: Weedle2 moved to the UniFFI repository in April 2022.
A Web IDL parser
Built with 🦀🕸 by The Rust and WebAssembly Working Group.Forked to extend the functionality beyond WebIDL needs.
Parses valid WebIDL definitions & produces a data structure starting from
Definitions
.
[dependencies]
weedle2 = "2.0.0-alpha0"
fn main() {
let parsed = weedle::parse("
interface Window {
readonly attribute Storage sessionStorage;
};
").unwrap();
println!("{:?}", parsed);
}