-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wasm-bindgen v0.2 handles for web_sys::HtmlCanvasElement and web_…
…sys::OffscreenCanvas (#134) * Add wasm-bindgen v0.2 handles * Replace wasm-bindgen handles with real wbg objects In response to feedback from the community, this sets up the wasm- bindgen handles to use direct wasm-bindgen objects rather than indices. As wasm-bindgen handles are not Copy, Eq or Hash, this commit also removes those impls from all handles. Closes #142 as well Signed-off-by: John Nunley <[email protected]> * Fixup CI Signed-off-by: John Nunley <[email protected]> * Whoops Signed-off-by: John Nunley <[email protected]> * Rename feature to unstable_web_handles_wbg_02 Signed-off-by: John Nunley <[email protected]> * Use a raw pointer instead of the direct JsValue Signed-off-by: John Nunley <[email protected]> * Fix CI issues Signed-off-by: John Nunley <[email protected]> * Review comments Signed-off-by: John Nunley <[email protected]> * Fix wasm feature name and structs names * Re-add Copy * Redo web canvas examples * Documentation tweaks * Add safety comment about ABI * Add From impls for the new web handles --------- Signed-off-by: John Nunley <[email protected]> Co-authored-by: Mads Marquart <[email protected]>
- Loading branch information
Showing
5 changed files
with
191 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters