this will be a major pain to work through. for now, let's just add them and overtime work through these. Signed-off-by: strawberry <strawberry@puppygock.gay>
22 lines
536 B
Rust
22 lines
536 B
Rust
pub mod api;
|
|
mod config;
|
|
mod database;
|
|
mod service;
|
|
mod utils;
|
|
|
|
use std::sync::RwLock;
|
|
|
|
pub use api::ruma_wrapper::{Ruma, RumaResponse};
|
|
pub use config::Config;
|
|
pub use database::KeyValueDatabase;
|
|
pub use service::{pdu::PduEvent, Services};
|
|
pub use utils::error::{Error, Result};
|
|
|
|
pub static SERVICES: RwLock<Option<&'static Services<'static>>> = RwLock::new(None);
|
|
|
|
pub fn services() -> &'static Services<'static> {
|
|
SERVICES
|
|
.read()
|
|
.unwrap()
|
|
.expect("SERVICES should be initialized when this is called")
|
|
}
|