diff --git a/Cargo.toml b/Cargo.toml index 299a26ae6..b57f28140 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,13 +11,13 @@ description = "CLI tool for developing, testing, and publishing Dioxus apps" [dependencies] thiserror = "1.0.23" log = "0.4.13" -fern = { version="0.6.0", features=["colored"] } -wasm-bindgen-cli-support = "0.2.73" +fern = { version = "0.6.0", features = ["colored"] } +wasm-bindgen-cli-support = "0.2.78" anyhow = "1.0.38" argh = "0.1.4" serde = "1.0.120" serde_json = "1.0.61" -async-std = { version="1.9.0", features=["attributes"] } +async-std = { version = "1.9.0", features = ["attributes"] } tide = "0.15.0" fs_extra = "1.2.0" diff --git a/src/develop.rs b/src/develop.rs index 1ae016b0d..48565e311 100644 --- a/src/develop.rs +++ b/src/develop.rs @@ -40,7 +40,7 @@ async fn watch_directory(config: Config) -> Result<()> { // Automatically select the best implementation for your platform. // You can also access each implementation directly e.g. INotifyWatcher. - let mut watcher: RecommendedWatcher = Watcher::new_immediate(move |res| { + let mut watcher: RecommendedWatcher = Watcher::new(move |res| { async_std::task::block_on(watcher_tx.send(res)); }) .expect("failed to make watcher"); @@ -50,11 +50,11 @@ async fn watch_directory(config: Config) -> Result<()> { // Add a path to be watched. All files and directories at that path and // below will be monitored for changes. watcher - .watch(src_dir.join("src"), RecursiveMode::Recursive) + .watch(&src_dir.join("src"), RecursiveMode::Recursive) .expect("Failed to watch dir"); watcher - .watch(src_dir.join("examples"), RecursiveMode::Recursive) + .watch(&src_dir.join("examples"), RecursiveMode::Recursive) .expect("Failed to watch dir"); let build_config = BuildConfig::default(); diff --git a/src/main.rs b/src/main.rs index 7a5df372c..8b7ce240d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ -use diopack::cli::{LaunchCommand, LaunchOptions}; -use dioxus_cli as diopack; +use dioxus_studio as diopack; +use dioxus_studio::cli::{LaunchCommand, LaunchOptions}; #[async_std::main] async fn main() -> diopack::error::Result<()> {