progress-pile/progress-pile-client/src/global/mod.rs

15 lines
323 B
Rust

use crate::config::ClientConfig;
use sea_orm::DatabaseConnection;
use tokio::sync::OnceCell;
mod database;
pub static GLOBAL: Global = Global{
config: OnceCell::const_new(),
database: OnceCell::const_new(),
};
pub struct Global {
config: OnceCell<ClientConfig>,
database: OnceCell<DatabaseConnection>,
}