Cargo Features

dioxus-html = { version = "0.5.6", default-features = false, features = ["serialize", "mounted", "eval", "wasm-bind", "native-bind", "hot-reload-context", "html-to-rsx", "rfd"] }
default = eval, mounted, serialize

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

serialize default = serde, serde-value, serde_json, serde_repr

Enables 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, scroll::SerializedScrollData, selection::SerializedSelectionData, toggle::SerializedToggleData, touch::SerializedTouchData, transition::SerializedTransitionData, wheel::SerializedWheelData, file_data::SerializedFileEngine, point_interaction::SerializedPointInteraction, transit::HtmlEvent

mounted default

Enables DomRect, Element, HtmlElement, ScrollBehavior, ScrollIntoViewOptions and ScrollLogicalPosition of optional web-sys

eval default = serde, serde_json

Affects dioxus-html::eval

wasm-bind = wasm-bindgen, web-sys
native-bind = tokio

Affects dioxus-html::native_bind

hot-reload-context = dioxus-rsx

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.

dioxus-rsx hot-reload-context?
serde eval serialize
serde_repr serialize
wasm-bindgen wasm-bind?
serde-value serialize
tokio native-bind?
rfd implicit feature

Enables rfd


Rusty File Dialog

serde_json eval serialize
web-sys wasm-bind?