web-sys provides bindings for all Web APIs and is a procedurally generated crate from WebIDL.
It's the defacto way to interact with a browser's DOM and other APIs.
It's part of a bigger project called wasm-bindgen.
null. As a
result strong, static typed languages have to jump through hoops to assure that
the programmer is working with the values they expect. In Rust this means doing a
unwraping. The good news is that once you have a value, you
really have it.
web-sys crate is the low level crate that other Rust libraries and
frameworks build on top of. It is the bridge between Rust and your browser.