mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-18 07:11:56 +03:00
8181f7fa95
This commit implements callback interfaces for WebIDL, the final WebIDL construct that we were unconditionally ignoring! Callback interfaces are implemented as dictionaries of callbacks. Single-operation callback interfaces are also expanded when flattening to accept a `Function` as well, in accordance with the WebIDL spec. New features have been added to `web-sys` for all the new callback interface types. Additionally the `EventTarget.webidl` was tweaked to not have `EventListener?` as this is required for all functional usage and there's no need to keep that sort of web browser compat here. Closes #258
15 lines
255 B
Rust
15 lines
255 B
Rust
extern crate js_sys;
|
|
extern crate wasm_bindgen;
|
|
extern crate wasm_bindgen_test;
|
|
|
|
pub mod array;
|
|
pub mod array_buffer;
|
|
pub mod consts;
|
|
pub mod enums;
|
|
pub mod namespace;
|
|
pub mod simple;
|
|
pub mod throws;
|
|
pub mod dictionary;
|
|
pub mod global;
|
|
pub mod callbacks;
|