184 breaking releases
new 0.187.0 | Jan 22, 2025 |
---|---|
0.185.0 | Jan 9, 2025 |
0.184.0 | Dec 19, 2024 |
0.180.0 | Nov 28, 2024 |
0.2.0 | Mar 21, 2021 |
#258 in Programming languages
16,546 downloads per month
Used in 69 crates
(23 directly)
51KB
1.5K
SLoC
deno_webidl
This crate implements WebIDL for Deno. It consists of infrastructure to do ECMA -> WebIDL conversions.
Spec: https://webidl.spec.whatwg.org/
Usage Example
From javascript, include the extension's source, and assign the following to the global scope:
import * as webidl from "ext:deno_webidl/00_webidl.js";
Object.defineProperty(globalThis, webidl.brand, {
value: webidl.brand,
enumerable: false,
configurable: true,
writable: true,
});
Then from rust, provide init_webidl::init_webidl::init_ops_and_esm()
in the
extensions
field of your RuntimeOptions
Dependencies
~86MB
~1.5M SLoC