Compare commits
2 Commits
66a11313d2
...
80f6f5cddd
Author | SHA1 | Date | |
---|---|---|---|
80f6f5cddd | |||
c7841f43a6 |
7
Cargo.lock
generated
Normal file
7
Cargo.lock
generated
Normal 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"
|
@ -1,4 +1,4 @@
|
|||||||
# spellbook
|
# Spellbook
|
||||||
|
|
||||||
Shared types and useful components.
|
Shared types and useful components.
|
||||||
|
|
||||||
|
6
src/lib.rs
Normal file
6
src/lib.rs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
//! Shared types and useful components.
|
||||||
|
mod info;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
pub use crate::info::{get_name, get_version};
|
18
src/main.rs
18
src/main.rs
@ -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();
|
|
||||||
}
|
|
Reference in New Issue
Block a user