From 35ae80f183904466667af73c7921b4ade399569a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 30 Apr 2025 11:46:28 +0200 Subject: split base into asset_token and db --- base/src/lib.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 base/src/lib.rs (limited to 'base/src/lib.rs') diff --git a/base/src/lib.rs b/base/src/lib.rs deleted file mode 100644 index 55a9927..0000000 --- a/base/src/lib.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - 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") -}); -- cgit v1.2.3-70-g09d2