move to newer wry

This commit is contained in:
Jonathan Kelley committed 2023-07-05 13:44:24 -07:00
1 parent 2ce8ded74d
commit 5506c568c0
6 files changed
+119 -61

No files matched your search

+4 -4
View File
@@ -15,13 +15,13 @@ keywords = ["dom", "ui", "gui", "react"]
dioxus-core = { workspace = true, features = ["serialize"] }
dioxus-html = { workspace = true, features = ["serialize", "native-bind"] }
dioxus-interpreter-js = { workspace = true }
dioxus-hot-reload = { workspace = true, optional = true }
# dioxus-hot-reload = { workspace = true, optional = true }
serde = "1.0.136"
serde_json = "1.0.79"
thiserror = "1.0.30"
log = { workspace = true }
wry = { version = "0.27.2" }
wry = { version = "0.28.0" }
futures-channel = { workspace = true }
tokio = { workspace = true, features = [
"sync",
@@ -51,12 +51,12 @@ objc_id = "0.1.1"
core-foundation = "0.9.3"
[features]
default = ["tokio_runtime", "hot-reload"]
default = ["tokio_runtime"]
tokio_runtime = ["tokio"]
fullscreen = ["wry/fullscreen"]
transparent = ["wry/transparent"]
tray = ["wry/tray"]
hot-reload = ["dioxus-hot-reload"]
# hot-reload = ["dioxus-hot-reload"]
[dev-dependencies]
dioxus-core-macro = { workspace = true }
+10 -10
View File
@@ -123,16 +123,16 @@ pub fn launch_with_props<P: 'static>(root: Component<P>, props: P, cfg: Config)
let proxy = event_loop.create_proxy();
// Intialize hot reloading if it is enabled
#[cfg(all(feature = "hot-reload", debug_assertions))]
dioxus_hot_reload::connect({
let proxy = proxy.clone();
move |template| {
let _ = proxy.send_event(UserWindowEvent(
EventData::HotReloadEvent(template),
unsafe { WindowId::dummy() },
));
}
});
// #[cfg(all(feature = "hot-reload", debug_assertions))]
// dioxus_hot_reload::connect({
// let proxy = proxy.clone();
// move |template| {
// let _ = proxy.send_event(UserWindowEvent(
// EventData::HotReloadEvent(template),
// unsafe { WindowId::dummy() },
// ));
// }
// });
// We start the tokio runtime *on this thread*
// Any future we poll later will use this runtime to spawn tasks and for IO
+1 -1
View File
@@ -16,7 +16,7 @@ dioxus-rsx = { workspace = true }
dioxus-core = { workspace = true, features = ["serialize"] }
dioxus-html = { workspace = true, features = ["hot-reload-context"] }
interprocess-docfix = { version = "1.2.1" }
interprocess-docfix = { version = "1.2.2" }
notify = "5.0.0"
chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
serde_json = "1.0.91"