Skip to content

Commit

Permalink
refactor: move and rewrite splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fetchfern committed Apr 23, 2024
1 parent 84c2753 commit 03bbb41
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
38 changes: 29 additions & 9 deletions crates/alerion_core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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");

Expand Down Expand Up @@ -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;

10 changes: 0 additions & 10 deletions crates/alerion_core/src/logging.rs

This file was deleted.

0 comments on commit 03bbb41

Please sign in to comment.