#sys #web #wasm-bindgen #web-sys #bindings #webidl

web-sys

Bindings for all Web APIs, a procedurally generated crate from WebIDL

57 releases

0.3.55 Sep 15, 2021
0.3.53 Aug 19, 2021
0.3.51 May 10, 2021
0.3.50 Mar 29, 2021
0.0.1 Jul 19, 2018

#436 in WebAssembly

Download history 137734/week @ 2021-07-01 136149/week @ 2021-07-08 142360/week @ 2021-07-15 133440/week @ 2021-07-22 158281/week @ 2021-07-29 174548/week @ 2021-08-05 181269/week @ 2021-08-12 196426/week @ 2021-08-19 163729/week @ 2021-08-26 159690/week @ 2021-09-02 190791/week @ 2021-09-09 182386/week @ 2021-09-16 169823/week @ 2021-09-23 172420/week @ 2021-09-30 230369/week @ 2021-10-07 226189/week @ 2021-10-14

670,224 downloads per month
Used in 9,036 crates (441 directly)

MIT/Apache

8MB
158K SLoC

web-sys

Raw bindings to Web APIs for projects using wasm-bindgen.

Crate features

This crate by default contains very little when compiled as almost all of its exposed APIs are gated by Cargo features. The exhaustive list of features can be found in crates/web-sys/Cargo.toml, but the rule of thumb for web-sys is that each type has its own cargo feature (named after the type). Using an API requires enabling the features for all types used in the API, and APIs should mention in the documentation what features they require.


lib.rs:

Raw API bindings for Web APIs

This is a procedurally generated crate from browser WebIDL which provides a binding to all APIs that browsers provide on the web.

This crate by default contains very little when compiled as almost all of its exposed APIs are gated by Cargo features. The exhaustive list of features can be found in crates/web-sys/Cargo.toml, but the rule of thumb for web-sys is that each type has its own cargo feature (named after the type). Using an API requires enabling the features for all types used in the API, and APIs should mention in the documentation what features they require.

Dependencies