Compare commits

..

2 Commits

Author SHA1 Message Date
5566d1ee20 chore: add build.rs 2020-08-01 00:04:27 +08:00
f9e11f658f feat: add logo 2020-08-01 00:04:11 +08:00
2 changed files with 18 additions and 0 deletions

11
build.rs Normal file
View File

@@ -0,0 +1,11 @@
use std::process::Command;
fn main() {
let output = Command::new("git").args(&["rev-parse", "HEAD"]).output().unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
let date_output = Command::new("date").args(&["+%Y-%m-%dT%H:%M:%S%z"]).output().unwrap();
let date = String::from_utf8(date_output.stdout).unwrap();
println!("cargo:rustc-env=BUILD_DATE={}", date);
}

7
src/logo.txt Normal file
View File

@@ -0,0 +1,7 @@
______ _________ ___ ______ ___
.' ___ | | _ _ | .' `.|_ _ `. .' `.
/ .' \_| ,--. _ .--. .--./) .--. |_/ | | \_|/ .-. \ | | `. \/ .-. \
| | `'_\ : [ `/'`\]/ /'`\;/ .'`\ \ | | | | | | | | | || | | |
\ `.___.'\// | |, | | \ \._//| \__. | _| |_ \ `-' /_| |_.' /\ `-' /
`.____ .'\'-;__/[___] .',__` '.__.' |_____| `.___.'|______.' `.___.'
( ( __))