dioxus/packages/desktop/Cargo.toml

96 lines
2.5 KiB
TOML
Raw Normal View History

2021-01-21 03:22:08 -05:00
[package]
2021-07-15 18:40:12 -04:00
name = "dioxus-desktop"
version = { workspace = true }
2021-12-15 16:04:27 -05:00
authors = ["Jonathan Kelley"]
2024-01-18 19:27:55 -08:00
edition = "2021"
description = "WebView renderer for Dioxus"
license = "MIT OR Apache-2.0"
2021-12-15 16:04:27 -05:00
repository = "https://github.com/DioxusLabs/dioxus/"
2023-09-16 19:03:27 +02:00
homepage = "https://dioxuslabs.com/learn/0.4/getting_started/desktop"
keywords = ["dom", "ui", "gui", "react"]
2021-01-21 03:22:08 -05:00
[dependencies]
2023-06-19 14:29:11 -05:00
dioxus-core = { workspace = true, features = ["serialize"] }
dioxus-html = { workspace = true, features = [
"serialize",
"native-bind",
"mounted",
"eval",
] }
2023-10-19 16:40:08 -05:00
dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
2023-06-19 14:29:11 -05:00
dioxus-hot-reload = { workspace = true, optional = true }
dioxus-cli-config = { workspace = true }
2024-02-02 14:47:59 -06:00
generational-box = { workspace = true }
serde = "1.0.136"
serde_json = "1.0.79"
thiserror = { workspace = true }
2023-09-06 17:47:33 -05:00
tracing = { workspace = true }
2024-01-04 15:21:30 -08:00
wry = { version = "0.35.0", default-features = false, features = [
"os-webview",
2024-01-04 15:21:30 -08:00
"protocol",
"file-drop",
] }
futures-channel = { workspace = true }
2023-06-19 14:29:11 -05:00
tokio = { workspace = true, features = [
2021-10-19 12:09:35 -04:00
"sync",
"rt-multi-thread",
"rt",
2021-11-16 01:25:38 -05:00
"time",
2022-11-17 20:00:39 -08:00
"macros",
2023-04-25 08:16:11 -05:00
"fs",
2023-06-19 14:57:58 -05:00
], optional = true }
2022-10-24 04:40:41 +02:00
webbrowser = "0.8.0"
2022-11-17 20:00:39 -08:00
infer = "0.11.0"
2022-02-23 13:53:45 -05:00
dunce = "1.0.2"
2023-06-19 14:29:11 -05:00
slab = { workspace = true }
2023-10-15 09:23:01 -05:00
rustc-hash = { workspace = true }
2024-01-15 14:27:20 -08:00
dioxus-hooks = { workspace = true }
2023-06-19 14:29:11 -05:00
futures-util = { workspace = true }
2023-05-23 09:09:05 -05:00
urlencoding = "2.1.2"
async-trait = "0.1.68"
2023-09-04 08:24:38 -05:00
crossbeam-channel = "0.5.8"
2024-01-04 15:21:30 -08:00
tao = { version = "0.24.0", features = ["rwh_05"] }
2023-07-05 12:49:41 -07:00
[target.'cfg(any(target_os = "windows",target_os = "macos",target_os = "linux",target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
2023-10-31 13:49:29 -05:00
rfd = "0.12"
2024-01-04 15:21:30 -08:00
global-hotkey = "0.4.1"
2024-01-05 23:46:16 -08:00
muda = "0.11.3"
2023-06-30 13:59:48 -07:00
2022-11-22 21:35:40 +01:00
[target.'cfg(target_os = "ios")'.dependencies]
objc = "0.2.7"
objc_id = "0.1.1"
2022-02-23 13:53:45 -05:00
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.9.3"
2023-07-04 14:47:36 +02:00
objc = "0.2.7"
2021-10-05 03:37:15 -04:00
[features]
2023-08-21 10:22:13 -05:00
default = ["tokio_runtime", "hot-reload", "wry/objc-exception"]
2021-10-05 03:37:15 -04:00
tokio_runtime = ["tokio"]
fullscreen = ["wry/fullscreen"]
transparent = ["wry/transparent"]
2023-08-31 15:43:26 -05:00
devtools = ["wry/devtools"]
2023-01-13 17:50:32 -06:00
hot-reload = ["dioxus-hot-reload"]
gnu = []
2023-08-21 10:22:13 -05:00
[package.metadata.docs.rs]
default-features = false
2024-01-04 17:04:56 -06:00
features = ["tokio_runtime", "hot-reload"]
2021-07-15 12:18:11 -04:00
[dev-dependencies]
dioxus = { workspace = true, features = ["desktop"] }
2023-04-27 18:00:43 -05:00
exitcode = "1.1.2"
2023-04-27 16:38:09 -05:00
2023-05-04 11:04:06 -05:00
# These tests need to be run on the main thread, so they cannot use rust's test harness.
2023-04-27 16:38:09 -05:00
[[test]]
2023-05-04 11:04:06 -05:00
name = "check_events"
path = "headless_tests/events.rs"
harness = false
[[test]]
name = "check_rendering"
path = "headless_tests/rendering.rs"
harness = false