Merge branch 'master' into cli-config-library
This commit is contained in:
commit
23509ada9f
285 files changed
+13088
-4835
No files matched your search
@@ -1,3 +1,4 @@
|
||||
use crate::{cfg::ConfigOptsServe, BuildResult, Result};
|
||||
use crate::{BuildResult, Result};
|
||||
use dioxus_cli_config::CrateConfig;
|
||||
|
||||
@@ -12,6 +13,7 @@ use tokio::sync::broadcast::{self};
|
||||
mod output;
|
||||
use output::*;
|
||||
pub mod desktop;
|
||||
pub mod fullstack;
|
||||
pub mod web;
|
||||
|
||||
/// Sets up a file watcher
|
||||
@@ -133,6 +135,13 @@ async fn setup_file_watcher<F: Fn() -> Result<BuildResult> + Send + 'static>(
|
||||
Ok(watcher)
|
||||
}
|
||||
|
||||
pub(crate) trait Platform {
|
||||
fn start(config: &CrateConfig, serve: &ConfigOptsServe) -> Result<Self>
|
||||
where
|
||||
Self: Sized;
|
||||
fn rebuild(&mut self, config: &CrateConfig) -> Result<BuildResult>;
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HotReloadState {
|
||||
pub messages: broadcast::Sender<Template<'static>>,
|
||||
|
||||
Reference in new issue
Block a user