Files
unshell/unshell-server/src/lib.rs
T

23 lines
572 B
Rust
Raw Normal View History

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;
mod server;
2025-11-29 14:10:05 -07:00
pub use api::app::start_api;
2025-12-01 20:13:35 -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-01 20:13:35 -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(),
};