/* This file is part of jellything (https://codeberg.org/metamuffin/jellything) which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin */ pub mod assetfed; pub mod database; pub mod federation; pub mod permission; pub use jellycommon as common; use serde::{Deserialize, Serialize}; use std::sync::LazyLock; use std::sync::Mutex; #[rustfmt::skip] #[derive(Debug, Deserialize, Serialize, Default)] pub struct Config { asset_key: Option, } pub static CONF_PRELOAD: Mutex> = Mutex::new(None); static CONF: LazyLock = LazyLock::new(|| { CONF_PRELOAD .lock() .unwrap() .take() .expect("cache config not preloaded. logic error") });