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