| 1 |
# The `web-sys` Crate |
| 2 |
|
| 3 |
[The `web-sys` crate][web-sys] provides raw `wasm-bindgen` imports for all of the Web's |
| 4 |
APIs. This includes: |
| 5 |
|
| 6 |
* `window.fetch` |
| 7 |
* `Node.prototype.appendChild` |
| 8 |
* WebGL |
| 9 |
* WebAudio |
| 10 |
* and many more! |
| 11 |
|
| 12 |
It's sort of like the `libc` crate, but for the Web. |
| 13 |
|
| 14 |
It does *not* include the JavaScript APIs that are guaranteed to exist in all |
| 15 |
standards-compliant ECMAScript environments, such as `Array`, `Date`, and |
| 16 |
`eval`. Bindings for these APIs can be found in [the `js-sys` crate][js-sys]. |
| 17 |
|
| 18 |
## API Documentation |
| 19 |
|
| 20 |
[**Read the `web-sys` API documentation here!**][api] |
| 21 |
|
| 22 |
[api]: https://rustwasm.github.io/wasm-bindgen/api/web_sys/ |
| 23 |
[js-sys]: https://crates.io/crates/js-sys |
| 24 |
[web-sys]: https://crates.io/crates/web-sys |