-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix support for WebAssembly The crate previously assumed that `wasm-bindgen` can be used for every WebAssembly target. However there's essentially the following 4 targets: - WebAssembly on the web - Freestanding WebAssembly - WebAssembly with WASI - WebAssembly with Emscripten Only `WebAssembly on the web` supports `wasm-bindgen`. Unfortunately that's not a target on its own for historical reasons, so the only way to properly support that target is through a `js` feature. All other, unsupported, WebAssembly targets now fall back onto a new fallback implementation that always returns `None`. The crate now also should be able to build at all on unsupported targets because of that.
- Loading branch information
Showing
4 changed files
with
27 additions
and
10 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