Cargo Features
[dependencies]
dioxus-web = { version = "0.6.0-alpha.2", default-features = false, features = ["panic_hook", "hydrate", "mounted", "file_engine", "hot_reload", "document"] }
- default = document, file_engine, hot_reload, mounted, panic_hook
-
These default features are set whenever
dioxus-web
is added without
somewhere in the dependency tree.default-features = false - panic_hook default
-
Enables console_error_panic_hook
- hydrate = ciborium
- mounted default
-
Enables mounted of dioxus-html, Element of web-sys
- file_engine default
-
Enables file-engine of dioxus-html
- hot_reload default
-
Enables serde and serde_json, serialize of dioxus-core, Location, MessageEvent and WebSocket of web-sys
- document default
-
Enables serde, serde-wasm-bindgen ^0.5.0, and serde_json, document of dioxus-html
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.