diff --git a/crates/alerion_core/src/lib.rs b/crates/alerion_core/src/lib.rs index 41312e5..815ad33 100644 --- a/crates/alerion_core/src/lib.rs +++ b/crates/alerion_core/src/lib.rs @@ -1,21 +1,34 @@ #![deny(clippy::unwrap_used)] -pub mod config; -pub mod filesystem; -pub mod logging; -pub mod servers; -pub mod webserver; -pub mod websocket; - use config::AlerionConfig; use futures::stream::{FuturesUnordered, StreamExt}; use crate::filesystem::setup_directories; +pub fn splash() { + println!( + " + + █████ ██ ███████ ██████ ██ ██████ ███ ██ +██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ +███████ ██ █████ ██████ ██ ██ ██ ██ ██ ██ +██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ +██ ██ ███████ ███████ ██ ██ ██ ██████ ██ ████ + +Copyright (c) 2024 Pyro Host Inc. All Right Reserved. + +Pyro Alerion is licensed under the Pyro Source Available +License (PSAL). Your use of this software is governed by +the terms of the PSAL. If you don't agree to the terms of +the PSAL, you are not permitted to use this software. + +License: https://github.com/pyrohost/legal/blob/main/licenses/PSAL.md +Source code: https://github.com/pyrohost/alerion"); +} + /// Alerion main entrypoint. Expects a tokio runtime to be setup. pub async fn alerion_main() -> anyhow::Result<()> { - logging::splash(); - //logging::setup(); + splash(); tracing::info!("Starting Alerion"); @@ -48,3 +61,10 @@ pub async fn alerion_main() -> anyhow::Result<()> { Ok(()) } + +pub mod config; +pub mod filesystem; +pub mod servers; +pub mod webserver; +pub mod websocket; + diff --git a/crates/alerion_core/src/logging.rs b/crates/alerion_core/src/logging.rs deleted file mode 100644 index f16d769..0000000 --- a/crates/alerion_core/src/logging.rs +++ /dev/null @@ -1,10 +0,0 @@ -pub fn splash() { - println!( - " - █████ ██ ███████ ██████ ██ ██████ ███ ██ -██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ -███████ ██ █████ ██████ ██ ██ ██ ██ ██ ██ -██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ -██ ██ ███████ ███████ ██ ██ ██ ██████ ██ ████ " - ); -}