mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 19:11:45 +03:00
269c491380
* Gate `web-sys` APIs on activated features Currently the compile times of `web-sys` are unfortunately prohibitive, increasing the barrier to using it. This commit updates the crate to instead have all APIs gated by a set of Cargo features which affect what bindings are generated at compile time (and which are then compiled by rustc). It's significantly faster to activate only a handful of features vs all thousand of them! A magical env var is added to print the list of all features that should be generated, and then necessary logic is added to ferry features from the build script to the webidl crate which then uses that as a filter to remove items after parsing. Currently parsing is pretty speedy so we'll unconditionally parse all WebIDL files, but this may change in the future! For now this will make the `web-sys` crate a bit less ergonomic to use as lots of features will need to be specified, but it should make it much more approachable in terms of first-user experience with compile times. * Fix AppVeyor testing web-sys * FIx a typo * Udpate feature listings from rebase conflicts * Add some crate docs and such |
||
---|---|---|
.. | ||
array_buffer.js | ||
array_buffer.rs | ||
array_buffer.webidl | ||
array.js | ||
array.rs | ||
array.webidl | ||
build.rs | ||
Cargo.toml | ||
consts.js | ||
consts.rs | ||
consts.webidl | ||
dictionary.js | ||
dictionary.rs | ||
dictionary.webidl | ||
enums.js | ||
enums.rs | ||
enums.webidl | ||
global.js | ||
global.rs | ||
global.webidl | ||
lib.rs | ||
main.rs | ||
namespace.js | ||
namespace.rs | ||
namespace.webidl | ||
simple.js | ||
simple.rs | ||
simple.webidl | ||
throws.js | ||
throws.rs | ||
throws.webidl |