[package]
name = "dioxus-sdk"
version = "0.5.0"
authors = ["Jonathan Kelley", "Dioxus Labs", "ealmloff", "DogeDark", "marc2332"]
edition = "2021"
description = "Platform agnostic library for supercharging your productivity with Dioxus"
license = "MIT"
readme = "../README.md"
repository = "https://github.com/DioxusLabs/dioxus-sdk/"
homepage = "https://dioxuslabs.com"
keywords = ["dom", "gui", "dioxus", "standard", "hooks"]
categories = ["multimedia", "os", "wasm"]
[features]
utils = ["dep:async-broadcast", "uuid/v4"]
clipboard = ["dep:copypasta"]
notifications = ["dep:notify-rust"]
geolocation = [
"dep:futures",
"dep:futures-util",
"windows/Foundation",
"windows/Devices_Geolocation",
"web-sys/Navigator",
"web-sys/Geolocation",
"web-sys/PositionOptions",
"dep:wasm-bindgen",
]
color_scheme = [
"web-sys/Window",
"web-sys/MediaQueryList",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
]
i18n = [
"dep:serde",
"dep:serde_json",
"dep:unic-langid",
]
storage = [
"dep:rustc-hash",
"dep:postcard",
"dep:once_cell",
"dep:dioxus-signals",
"dep:tokio",
"dep:yazi",
"web-sys/StorageEvent",
"dep:serde",
"dep:futures-util",
"dep:wasm-bindgen",
"dep:directories",
]
wasm-testing = ["geolocation", "color_scheme", "utils", "i18n"]
desktop-testing = ["clipboard", "notifications", "geolocation", "utils", "i18n"]
[dependencies]
dioxus = { workspace = true }
cfg-if = "1.0.0"
copypasta = { version = "0.8.2", optional = true }
notify-rust = { version = "4.8.0", optional = true }
uuid = { version = "1.3.2", optional = true }
async-broadcast = { version = "0.5.1", optional = true }
futures = { version = "0.3.28", features = ["std"], optional = true }
futures-util = { version = "0.3.28", optional = true }
serde = { version = "1.0.163", optional = true }
serde_json = { version = "1.0.96", optional = true }
unic-langid = { version = "0.9.1", features = ["serde"], optional = true }
rustc-hash = { version = "1.1.0", optional = true }
postcard = { version = "1.0.2", features = ["use-std"], optional = true }
once_cell = { version = "1.17.0", optional = true }
dioxus-signals = { version = "0.5.0-alpha.2", features = [
"serialize",
], optional = true }
tokio = { version = "1.33.0", features = ["sync"], optional = true }
yazi = { version = "0.1.4", optional = true }
tracing = "0.1.40"
[target.'cfg(windows)'.dependencies]
windows = { version = "0.48.0", optional = true }
[target.'cfg(target_family = "wasm")'.dependencies]
web-sys = { version = "0.3.60", optional = true }
wasm-bindgen = { version = "0.2.87", optional = true }
wasm-bindgen-futures = { version = "0.4.35", optional = true }
js-sys = "0.3.62"
uuid = { version = "1.3.2", features = ["js"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
directories = { version = "4.0.1", optional = true }
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
no-default-features = true
features = ["desktop-testing"]