Crates.io | weedle2 |
lib.rs | weedle2 |
version | 5.0.0 |
source | src |
created_at | 2022-02-08 14:36:33.326848 |
updated_at | 2024-01-24 15:58:52.996691 |
description | A WebIDL Parser |
homepage | https://github.com/mozilla/uniffi-rs/tree/main/weedle2 |
repository | https://github.com/mozilla/uniffi-rs |
max_upload_size | |
id | 529132 |
size | 96,190 |
A Web IDL parser
Built with 🦀🕸 by The Rust and WebAssembly Working Group.Parses valid WebIDL definitions & produces a data structure starting from
Definitions
.
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);
}