5 releases (stable)
4.0.0 | Aug 4, 2022 |
---|---|
3.0.0 | Jun 16, 2022 |
2.0.1 | May 24, 2022 |
2.0.0 | Feb 8, 2022 |
#83 in WebAssembly
41,233 downloads per month
Used in 8 crates
(via uniffi_bindgen)
93KB
2.5K
SLoC
Weedle 2 - Electric Boogaloo
A Web IDL parser
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 = "4.0.0"
src/main.rs
fn main() {
let parsed = weedle::parse("
interface Window {
readonly attribute Storage sessionStorage;
};
").unwrap();
println!("{:?}", parsed);
}
Dependencies
~1MB
~17K SLoC