Compare commits

...

2 Commits

Author SHA1 Message Date
fb3408ae33 Make server main async
All checks were successful
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / tailwind-build (push) Successful in 5s
Push Workflows / test (push) Successful in 27s
Push Workflows / docs (push) Successful in 26s
Push Workflows / clippy (push) Successful in 22s
Push Workflows / build (push) Successful in 54s
Push Workflows / nix-build (push) Successful in 4m57s
2026-06-21 16:51:22 -04:00
680d59c173 Add tokio 2026-06-21 16:51:06 -04:00
4 changed files with 7 additions and 3 deletions

1
Cargo.lock generated
View File

@@ -2098,6 +2098,7 @@ dependencies = [
"rand 0.10.1", "rand 0.10.1",
"serde", "serde",
"thiserror 2.0.18", "thiserror 2.0.18",
"tokio",
"tracing", "tracing",
] ]

View File

@@ -17,6 +17,7 @@ lucide-dioxus = { version = "3.11.0", features = ["notifications"] }
rand = "0.10.1" rand = "0.10.1"
serde = { version = "1.0.228", features = ["derive"] } serde = { version = "1.0.228", features = ["derive"] }
thiserror = "2.0.18" thiserror = "2.0.18"
tokio = { version = "1.52.3", optional = true, features = ["macros", "rt-multi-thread"] }
tracing = "0.1.44" tracing = "0.1.44"
[features] [features]
@@ -27,6 +28,7 @@ server = [
"dep:diesel", "dep:diesel",
"dep:diesel_migrations", "dep:diesel_migrations",
"dep:dotenvy", "dep:dotenvy",
"dep:tokio",
] ]
# Disabled until supported # Disabled until supported

View File

@@ -23,7 +23,8 @@ fn main() {
} }
#[cfg(feature = "server")] #[cfg(feature = "server")]
fn main() { #[tokio::main]
async fn main() {
tracing_setup(); tracing_setup();
server::main() server::main().await
} }

View File

@@ -1,6 +1,6 @@
use crate::App; use crate::App;
pub fn main() { pub async fn main() {
if let Err(e) = dotenvy::dotenv() { if let Err(e) = dotenvy::dotenv() {
tracing::warn!("Error reading .env: {e}"); tracing::warn!("Error reading .env: {e}");
} }