sys web-sys

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

25 releases

✓ Uses Rust 2018 edition

new 0.3.23 Jun 14, 2019
0.3.20 Apr 29, 2019
0.3.17 Mar 22, 2019
0.3.6 Dec 4, 2018
0.0.1 Jul 19, 2018

#21 in WebAssembly

Download history 840/week @ 2019-03-01 830/week @ 2019-03-08 911/week @ 2019-03-15 1059/week @ 2019-03-22 1275/week @ 2019-03-29 1483/week @ 2019-04-05 1446/week @ 2019-04-12 1403/week @ 2019-04-19 1491/week @ 2019-04-26 1781/week @ 2019-05-03 1575/week @ 2019-05-10 2003/week @ 2019-05-17 1375/week @ 2019-05-24 1447/week @ 2019-05-31 1654/week @ 2019-06-07

6,248 downloads per month
Used in 99 crates (63 directly)

MIT/Apache

584KB
4.5K 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 browser 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

~1.5MB
~27K SLoC