зеркало из https://github.com/mozilla/uniffi-rs.git
f856555557
This was previously published as weedle 4.0.1, but this change was actually breaking:
|
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE.md | ||
README.md | ||
release.toml |
README.md
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 = "5.0.0"
src/main.rs
fn main() {
let parsed = weedle::parse("
interface Window {
readonly attribute Storage sessionStorage;
};
").unwrap();
println!("{:?}", parsed);
}