Debian Codegraph @

.cargo/vendor/wasm-bindgen/guide/src/contributing/web-sys/index.md

raw
1 # `web-sys`
2
3 The `web-sys` crate provides raw bindings to all of the Web's APIs, and its
4 source lives at `wasm-bindgen/crates/web-sys`.
5
6 The `web-sys` crate is **entirely** mechanically generated inside `build.rs`
7 using `wasm-bindgen`'s WebIDL frontend and the WebIDL interface definitions for
8 Web APIs. This means that `web-sys` isn't always the most ergonomic crate to
9 use, but it's intended to provide verified and correct bindings to the web
10 platform, and then better interfaces can be iterated on crates.io!
11
12 Documentation for the published version of this crate is available on
13 [docs.rs][docsrs] but you can also check out the [master branch
14 documentation][masterdoc] for the crate.
15
16 [docsrs]: https://docs.rs/web-sys
17 [masterdoc]: https://rustwasm.github.io/wasm-bindgen/api/web_sys/