Registry / other / deno-webidl

deno-webidl

JSON →
library0.237.0rscratesunverified

WebIDL implementation for Deno, enabling parsing and generation of WebIDL definitions.

# Cargo.toml [dependencies] deno_webidl = "0.237.0"
INSTALL
IMPORT
SIG · DENO-WEBIDL
D
deno-webidl
otherrustv0.237.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
use deno_webidl::parser::parse;

Parses a WebIDL string and prints the resulting interface definition.

use deno_webidl::parser::parse; let idl = "interface Foo { attribute long bar; };"; let result = parse(idl).unwrap(); println!("Parsed interface: {:?}", result);
Debug
Known issues
gotchaThis crate is tightly coupled to Deno internals and may not be stable for external use.
fix
Use only within Deno's ecosystem or pin to a specific version.
affects: >=0.0.0
Upgrade
Version history
0.237.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
deno-webidl — cargo add deno-webidl · libregistry