Cargo Features

[dependencies]
dioxus-web = { version = "0.7.0-alpha.0", default-features = false, features = ["hydrate", "mounted", "file_engine", "devtools", "document", "ciborium"] }
default = devtools, document, file_engine, mounted

These default features are set whenever dioxus-web is added without default-features = false somewhere in the dependency tree.

hydrate

Enables dioxus-fullstack-protocol, serde, and web-sys

mounted default

Enables DomRect, Element, ScrollBehavior, ScrollIntoViewOptions and ScrollLogicalPosition of web-sys and mounted of dioxus-html

dioxus-html:

TODO: Remove the mounted feature flag in the next major release. It no longer activates any extra code

file_engine default

Enables async-trait, File, FileList and FileReader of web-sys and file_engine of dioxus-html

dioxus-html:

TODO: Remove the file engine feature flag in the next major release. It no longer activates any extra code

devtools default

Enables gloo-timers, serde, and serde_json, serialize of dioxus-core, Location, MessageEvent and WebSocket of web-sys

document default

Enables serde, serde-wasm-bindgen, and serde_json

Features from optional dependencies

ciborium implicit feature

Enables ciborium

ciborium:

serde implementation of CBOR using ciborium-basic