mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Update and improve crate features in web-sys
* Regenerate the list of features for the crate given recent improvements, enabling some more types to be bound. * Add feature gates for the `css` and `console` namespaces (modules), gating the APIs by default. Now `web_sys` has zero APIs unless they're requested. * Improved the "required feature" documentation for `struct` types to not list parent classes and mention just the `struct` type instead.
This commit is contained in:
@ -69,6 +69,7 @@ fn try_main() -> Result<(), failure::Error> {
|
||||
}
|
||||
|
||||
// If we're printing all features don't filter anything
|
||||
println!("cargo:rerun-if-env-changed=__WASM_BINDGEN_DUMP_FEATURES");
|
||||
let allowed = if env::var("__WASM_BINDGEN_DUMP_FEATURES").is_ok() {
|
||||
None
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user