mirror of
https://github.com/denoland/deno.git
synced 2025-02-14 17:47:35 -05:00
![]() Initial implementation of WebTransport client and server! This is very unstable because the interface should eventually shift to use hyper (h3 is on the [2025 roadmap](https://hyper.rs/contrib/roadmap/)) instead of manually messing with the the protocol, which will enable integration with Deno.serveHttp/etc and allow WebTransport over h2. This will also let us expose multiplexing. WebTransport stats will be a followup due to their complexity. Fixes: https://github.com/denoland/deno/issues/9017 |
||
---|---|---|
.. | ||
benches | ||
00_webidl.js | ||
Cargo.toml | ||
internal.d.ts | ||
lib.rs | ||
README.md |
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