- Add #[allow(dead_code)] to temporarily unused functions - Remove unused is_expired() and UserRole::as_str() - Fix unused variable warnings (token, theme) - Update progress.txt: mark all stories complete Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
432 B
Rust
24 lines
432 B
Rust
mod api;
|
|
mod auth;
|
|
mod db;
|
|
mod models;
|
|
mod pages;
|
|
mod router;
|
|
mod tasks;
|
|
mod theme;
|
|
|
|
use router::AppRouter;
|
|
|
|
fn main() {
|
|
#[cfg(feature = "server")]
|
|
{
|
|
dotenvy::dotenv().ok();
|
|
std::thread::spawn(|| {
|
|
let rt = tokio::runtime::Runtime::new().expect("Failed to create Tokio runtime");
|
|
rt.block_on(tasks::session_cleanup::run_cleanup());
|
|
});
|
|
}
|
|
|
|
dioxus::launch(AppRouter);
|
|
}
|