diff --git a/Cargo.toml b/Cargo.toml index b582d23..8e63fc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,38 +53,16 @@ tickets = [] [dependencies] anyhow = { workspace = true } -async-trait = { workspace = true } axum = { workspace = true } -base64 = { workspace = true } -bytes = { workspace = true } -chrono = { workspace = true, features = ["serde"] } -diesel = { workspace = true, features = ["sqlite"] } -dirs = { workspace = true } -env_logger = { workspace = true } -futures = { workspace = true } futures-util = { workspace = true } -hostname = { workspace = true } -jsonwebtoken = { workspace = true } -local-ip-address = { workspace = true } log = { workspace = true } -mime_guess = { workspace = true } native-tls = { workspace = true } -rand = { workspace = true } -regex = { workspace = true } reqwest = { workspace = true, features = ["json"] } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -time = { workspace = true } tokio = { workspace = true, features = ["full"] } -tokio-stream = { workspace = true } tokio-tungstenite = { workspace = true, features = ["native-tls", "connect"] } -tower = { workspace = true } tower-http = { workspace = true, features = ["cors", "fs", "trace"] } -tower-cookies = { workspace = true } -tracing = { workspace = true } -urlencoding = { workspace = true } -uuid = { workspace = true, features = ["serde", "v4"] } -webbrowser = { workspace = true } [lints] workspace = true diff --git a/src/ui_server/mod.rs b/src/ui_server/mod.rs index daa0d3b..67b1c69 100644 --- a/src/ui_server/mod.rs +++ b/src/ui_server/mod.rs @@ -136,6 +136,7 @@ pub async fn serve_minimal() -> impl IntoResponse { pub async fn serve_suite() -> impl IntoResponse { match fs::read_to_string("ui/suite/index.html") { Ok(raw_html) => { + #[allow(unused_mut)] // Mutable required for feature-gated blocks let mut html = raw_html; // Core Apps @@ -208,7 +209,7 @@ pub async fn serve_suite() -> impl IntoResponse { } } -fn remove_section(html: &str, section: &str) -> String { +pub fn remove_section(html: &str, section: &str) -> String { let start_marker = format!("", section); let end_marker = format!("", section);