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

16 lines
323 B
Rust
Raw Normal View History

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>,
}