2025-11-29 14:10:05 -07:00
|
|
|
// #![macro_use]
|
2025-11-29 13:15:09 -07:00
|
|
|
|
2025-11-29 14:10:05 -07:00
|
|
|
mod api;
|
2025-12-16 22:23:54 -07:00
|
|
|
mod config;
|
2025-12-13 13:29:17 -07:00
|
|
|
pub mod logger;
|
2025-12-16 17:12:00 -07:00
|
|
|
mod modules;
|
2025-12-03 10:15:20 -07:00
|
|
|
mod server;
|
2025-12-17 16:40:34 -07:00
|
|
|
|
2025-11-29 14:10:05 -07:00
|
|
|
pub use api::app::start_api;
|
2025-12-01 20:13:35 -07:00
|
|
|
|
2025-12-03 10:15:20 -07:00
|
|
|
pub use server::Server;
|
|
|
|
|
|
|
|
|
|
#[static_init::dynamic]
|
|
|
|
|
pub static DATABASE_TREES: Vec<&'static str> = vec!["users"];
|
|
|
|
|
|
|
|
|
|
#[static_init::dynamic]
|
|
|
|
|
pub static DEFAULT_HOST: String = "localhost".to_string();
|
|
|
|
|
#[static_init::dynamic]
|
|
|
|
|
pub static DATABASE_NAME: String = "database".to_string();
|
|
|
|
|
|
2025-12-17 13:17:58 -07:00
|
|
|
// #[static_init::dynamic]
|
|
|
|
|
// pub static SERVER_CONFIG: unshell_lib::config::PayloadConfig = unshell_lib::config::PayloadConfig {
|
|
|
|
|
// id: "Server",
|
|
|
|
|
// components: unshell_lib::get_components(),
|
|
|
|
|
// runtime_config: Vec::new(),
|
|
|
|
|
// };
|