refactor: pull things into own files, have a library

This commit is contained in:
Khaïs COLIN 2025-05-02 20:35:45 +02:00
parent 4848f2be2f
commit ee23572983
7 changed files with 176 additions and 166 deletions

8
src/branding.rs Normal file
View file

@ -0,0 +1,8 @@
pub fn startup_msg() {
let name = env!("CARGO_PKG_NAME");
let version = env!("CARGO_PKG_VERSION");
let authors = env!("CARGO_PKG_AUTHORS");
println!("{name} v{version} started.",);
println!("Copyright 2025 {authors}. All rights reserved.")
}