Changed to a library from an executable.

This commit is contained in:
2025-07-29 12:06:00 -04:00
parent 66a11313d2
commit c7841f43a6
2 changed files with 6 additions and 18 deletions

6
src/lib.rs Normal file
View File

@ -0,0 +1,6 @@
//! Shared types and useful components.
mod info;
pub use crate::info::{get_name, get_version};

View File

@ -1,18 +0,0 @@
//! Shared types and useful components.
mod info;
/// Print the version.
fn print_version()
{
println!("{} v{}", info::get_name(), info::get_version());
}
fn main()
{
print_version();
}