fix dependancies

This commit is contained in:
Evan Almloff committed 2023-01-13 17:50:32 -06:00
1 parent 8a7cee529c
commit 0c6750d177
4 files changed
+10 -14

No files matched your search

+2 -5
View File
@@ -18,7 +18,7 @@ dioxus-core = { path = "../core", version = "^0.3.0", features = ["serialize"] }
dioxus-html = { path = "../html", version = "^0.3.0" }
dioxus-native-core = { path = "../native-core", version = "^0.2.0" }
dioxus-native-core-macro = { path = "../native-core-macro", version = "^0.2.0" }
dioxus-hot-reload = { path = "../hot-reload" }
dioxus-hot-reload = { path = "../hot-reload", optional = true }
tui = "0.17.0"
crossterm = "0.23.0"
@@ -30,9 +30,6 @@ smallvec = "1.6"
rustc-hash = "1.1.0"
anymap = "1.0.0-beta.2"
futures-channel = "0.3.25"
interprocess = { version = "1.2.1", optional = true }
serde = { version = "1.0.136", optional = true }
serde_json = { version = "1.0.79", optional = true }
[dev-dependencies]
dioxus = { path = "../dioxus" }
@@ -45,4 +42,4 @@ harness = false
[features]
default = ["hot-reload"]
hot-reload = ["interprocess", "serde", "serde_json"]
hot-reload = ["dioxus-hot-reload"]
+4 -4
View File
@@ -6,7 +6,6 @@ use crossterm::{
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use dioxus_core::*;
use dioxus_hot_reload::HotReloadMsg;
use dioxus_native_core::{real_dom::RealDom, FxDashSet, NodeId, NodeMask, SendAnyMap};
use focus::FocusState;
use futures::{
@@ -148,7 +147,8 @@ fn render_vdom(
.block_on(async {
#[cfg(all(feature = "hot-reload", debug_assertions))]
let mut hot_reload_rx = {
let (hot_reload_tx, hot_reload_rx) = unbounded_channel::<HotReloadMsg>();
let (hot_reload_tx, hot_reload_rx) =
unbounded_channel::<dioxus_hot_reload::HotReloadMsg>();
dioxus_hot_reload::connect(move |msg| {
let _ = hot_reload_tx.send(msg);
});
@@ -277,10 +277,10 @@ fn render_vdom(
// if we have a new template, replace the old one
if let Some(msg) = hot_reload_msg {
match msg {
HotReloadMsg::UpdateTemplate(template) => {
dioxus_hot_reload::HotReloadMsg::UpdateTemplate(template) => {
vdom.replace_template(template);
}
HotReloadMsg::Shutdown => {
dioxus_hot_reload::HotReloadMsg::Shutdown => {
break;
}
}