init: initial commit

This commit is contained in:
Blizzard
2026-08-02 21:15:48 +08:00
commit 48119ef99b
83 changed files with 13349 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
use sqlx::SqlitePool;
use std::path::PathBuf;
pub struct AppState {
pub db: SqlitePool,
pub app_data_dir: PathBuf,
}
impl AppState {
pub fn new(db: SqlitePool, app_data_dir: PathBuf) -> Self {
Self { db, app_data_dir }
}
}