Cargo Features

[dependencies]
dioxus-html = { version = "0.6.0-alpha.5", default-features = false, features = ["serialize", "mounted", "file_engine", "hot-reload-context", "html-to-rsx", "js-sys", "tokio"] }
default = file_engine, mounted, serialize

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

serialize default

Enables serde, serde_json, and serde_repr, serialize of dioxus-core, serde of euclid and keyboard-types

Affects animation::SerializedAnimationData, clipboard::SerializedClipboardData, composition::SerializedCompositionData, drag::SerializedDragData, focus::SerializedFocusData, form::SerializedFormData, image::SerializedImageData, keyboard::SerializedKeyboardData, media::SerializedMediaData, mouse::SerializedMouseData, pointer::SerializedPointerData, resize::SerializedResizeData, scroll::SerializedScrollData, selection::SerializedSelectionData, toggle::SerializedToggleData, touch::SerializedTouchData, transition::SerializedTransitionData, wheel::SerializedWheelData, point_interaction::SerializedPointInteraction, transit::HtmlEvent

mounted default
file_engine default

Enables async-trait

Affects file_data::HasFileData.files, file_data::FileEngine, file_data::SerializedFileEngine

hot-reload-context

Enables dioxus-rsx

html-to-rsx

Features from optional dependencies

js-sys implicit feature
tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications