Explorar el Código

depend on dioxus master until next release

Demonthos hace 3 años
padre
commit
f8014f307b
Se han modificado 3 ficheros con 4 adiciones y 4 borrados
  1. 1 1
      Cargo.toml
  2. 2 2
      src/server/hot_reload.rs
  3. 1 1
      src/server/mod.rs

+ 1 - 1
Cargo.toml

@@ -51,7 +51,7 @@ zip = "0.6.2"
 tower = "0.4.12"
 
 syn = { version = "1.0" }
-dioxus-rsx-interpreter = { path = "../dioxus/packages/rsx_interpreter" }
+dioxus = { git = "https://github.com/dioxuslabs/dioxus/", features = ["hot_reload"] }
 proc-macro2 = { version = "1.0", features = ["span-locations"] }
 
 

+ 2 - 2
src/server/hot_reload.rs

@@ -2,14 +2,14 @@ use axum::{
     extract::{ws::Message, Extension, TypedHeader, WebSocketUpgrade},
     response::IntoResponse,
 };
-use dioxus_rsx_interpreter::SetRsxMessage;
+use dioxus::rsx_interpreter::SetRsxMessage;
 
 use std::{path::PathBuf, sync::Arc};
 
 use super::BuildManager;
 pub use crate::hot_reload::{find_rsx, DiffResult};
 use crate::CrateConfig;
-pub use dioxus_rsx_interpreter::{error::Error, CodeLocation, SetManyRsxMessage};
+pub use dioxus::rsx_interpreter::{error::Error, CodeLocation, SetManyRsxMessage};
 pub use proc_macro2::TokenStream;
 pub use std::collections::HashMap;
 pub use std::sync::Mutex;

+ 1 - 1
src/server/mod.rs

@@ -6,7 +6,7 @@ use axum::{
     routing::{get, get_service},
     Router,
 };
-use dioxus_rsx_interpreter::SetRsxMessage;
+use dioxus::rsx_interpreter::SetRsxMessage;
 use notify::{RecommendedWatcher, Watcher};
 use syn::spanned::Spanned;