Cargo Features
[dependencies]
cargo-ux = { version = "0.1.0", default-features = false, features = ["web", "cairo", "web-sys"] }
- default = cairo
-
The
cairo
feature is set by default whenevercargo-ux
is added without
somewhere in the dependency tree.default-features = false - web = gloo, js-sys, wasm-bindgen, wasm-bindgen-futures, wasm-bindgen-test, wasm-logger
- cairo default = cairo-rs, png
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- png cairo
-
Enables png ^0.16
- cairo-rs cairo
-
Enables cairo-rs ^0.9
- wasm-bindgen web?
- wasm-bindgen-futures web?
- wasm-logger web?
- gloo web?
-
Enables gloo ^0.2
- js-sys web?
- wasm-bindgen-test web?
- web-sys implicit feature
-
Enables web-sys
web-sys:
Bindings for all Web APIs, a procedurally generated crate from WebIDL