diff --git a/Cargo.lock b/Cargo.lock index 5daf4df..f0515b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1840,18 +1840,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "gloo-timers" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994" -dependencies = [ - "futures-channel", - "futures-core", - "js-sys", - "wasm-bindgen", -] - [[package]] name = "gloo-utils" version = "0.2.0" @@ -3013,7 +3001,6 @@ dependencies = [ "console_error_panic_hook", "console_log", "futures", - "gloo-timers", "icondata", "js-sys", "leptos", diff --git a/Cargo.toml b/Cargo.toml index 61a2c4a..381f264 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ chrono = "0.4.38" console_error_panic_hook = "0.1.7" console_log = "1.0.0" futures = "0.3.30" -gloo-timers = { version = "0.3.0", features = ["futures"] } icondata = "0.4.0" js-sys = "0.3.70" leptos = { version = "0.6.15", features = ["csr"] } diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index c0489c3..e29af7d 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -4,7 +4,7 @@ use clap::builder::TypedValueParser as _; use clap::Parser; use mdns_sd::{ServiceDaemon, ServiceEvent, ServiceInfo}; use models::*; -#[cfg(not(debug_assertions))] +#[cfg(any(not(debug_assertions), desktop))] use shared_constants::SPLASH_SCREEN_DURATION; use shared_constants::{MDNS_SD_META_SERVICE, METRICS_CHECK_INTERVAL}; use std::{