Cargo Features

dioxus-sdk has no features set by default.

[dependencies]
dioxus-sdk = { version = "0.5.1", features = ["utils", "clipboard", "notifications", "geolocation", "color_scheme", "i18n", "storage", "wasm-testing", "desktop-testing"] }

# # #

Features.

# # #

utils desktop-testing? wasm-testing?

Enables async-broadcast ^0.5.1 and v4 of uuid

Used by: utils

clipboard desktop-testing?

Enables copypasta ^0.8.2

Used by: clipboard

notifications desktop-testing?

Enables notify-rust

Used by: notifications

geolocation desktop-testing? wasm-testing?

Enables Geolocation, Navigator and PositionOptions of web-sys, Devices_Geolocation and Foundation of windows ^0.48.0 and futures, futures-util, and wasm-bindgen

futures:

Used by: geolocation, storage

color_scheme wasm-testing?

Enables wasm-bindgen and wasm-bindgen-futures, MediaQueryList and Window of web-sys

i18n desktop-testing? wasm-testing?

Enables serde, serde_json, and unic-langid

serde:

Used by: i18n

storage

Enables yazi ^0.1.4, StorageEvent of web-sys and dioxus-signals, directories ^4.0.1, futures-util, once_cell, postcard, rustc-hash ^1.1.0, serde, tokio, and wasm-bindgen

rustc-hash:

Used by: storage

wasm-testing = color_scheme, geolocation, i18n, utils

CI testing

desktop-testing = clipboard, geolocation, i18n, notifications, utils

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.

# # # # # # # # # # #

Non Platform/Shared deps.

# # # # # # # # # # #

uuid utils?
windows win geolocation?

Enables windows ^0.48.0

web-sys wasm color_scheme? geolocation? storage?