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

sys web-sys

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

29 releases

✓ Uses Rust 2018 edition

new 0.3.27 Aug 19, 2019
0.3.25 Jul 11, 2019
0.3.17 Mar 22, 2019
0.3.6 Dec 4, 2018
0.0.1 Jul 19, 2018
Download history 1845/week @ 2019-05-06 1485/week @ 2019-05-13 1936/week @ 2019-05-20 1356/week @ 2019-05-27 1469/week @ 2019-06-03 1980/week @ 2019-06-10 2470/week @ 2019-06-17 2305/week @ 2019-06-24 1926/week @ 2019-07-01 2126/week @ 2019-07-08 1947/week @ 2019-07-15 2334/week @ 2019-07-22 1964/week @ 2019-07-29 2644/week @ 2019-08-05 4865/week @ 2019-08-12

9,629 downloads per month
Used in 333 crates (79 directly)

MIT/Apache

590KB
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.2–1.6MB
~33K SLoC