Compare commits

...

2 Commits

4 changed files with 14 additions and 19 deletions

7
Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "spellbook"
version = "0.0.0"

View File

@ -1,4 +1,4 @@
# spellbook
# Spellbook
Shared types and useful components.

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();
}