Cargo Features

dioxus-sdk has no features set by default.

[dependencies]
dioxus-sdk = { version = "0.6.0", features = ["clipboard", "notifications", "geolocation", "system_theme", "window_size", "channel", "storage", "timing", "wasm-testing", "desktop-testing"] }

# # #

Features.

# # #

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, PositionOptions and Window of web-sys, Devices_Geolocation and Foundation of windows ^0.48.0 and futures, futures-util, and wasm-bindgen

futures:

Used by: geolocation, storage, timing, window_size, system_theme

system_theme desktop-testing? wasm-testing?

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

window_size desktop-testing? wasm-testing?

Enables dioxus-desktop, futures-util, and wasm-bindgen, Window of web-sys

channel desktop-testing? wasm-testing?

Enables async-broadcast ^0.5.1 and v4 of uuid

Used by: channel

storage desktop-testing? wasm-testing?

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

rustc-hash:

Used by: storage

and sync of tokio

Used by: timing & storage

timing desktop-testing? wasm-testing?

Enables futures and gloo-timers, time of tokio

wasm-testing = channel, geolocation, storage, system_theme, timing, window_size

CI testing

desktop-testing = channel, clipboard, geolocation, notifications, storage, system_theme, timing, window_size

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 channel?
windows win geolocation?

Enables windows ^0.48.0

web-sys wasm geolocation? storage? system_theme? window_size?