sys - The wasm-bindgen
Guide (original) (raw)
The `wasm-bindgen` Guide
The web-sys Crate
The web-sys crate provides raw wasm-bindgen
imports for all of the Web's APIs. This includes:
window.fetch
Node.prototype.appendChild
- WebGL
- WebAudio
- and many more!
It's sort of like the libc
crate, but for the Web.
It does not include the JavaScript APIs that are guaranteed to exist in all standards-compliant ECMAScript environments, such as Array
, Date
, andeval
. Bindings for these APIs can be found in the js-sys crate.