41 lines
1.7 KiB
Rust
41 lines
1.7 KiB
Rust
use crate::build;
|
|
|
|
pub fn print_info() {
|
|
bunt::println!("Printing {$yellow}infos about this binary compilation{/$}! Relevant for like, {$blue+italic}security audits{/$}.");
|
|
let v = [
|
|
("branch", shadow_rs::branch()),
|
|
("is debug", shadow_rs::is_debug().to_string()),
|
|
("tag", shadow_rs::tag()),
|
|
("git_clean", shadow_rs::git_clean().to_string()),
|
|
("git_status_file", shadow_rs::git_status_file()),
|
|
|
|
("VERSION", build::VERSION.to_string()),
|
|
("CLAP_LONG_VERSION", build::CLAP_LONG_VERSION.to_string()),
|
|
("BRANCH", build::BRANCH.to_string()),
|
|
("SHORT_COMMIT", build::SHORT_COMMIT.to_string()),
|
|
("COMMIT_HASH", build::COMMIT_HASH.to_string()),
|
|
("COMMIT_DATE", build::COMMIT_DATE.to_string()),
|
|
("COMMIT_AUTHOR", build::COMMIT_AUTHOR.to_string()),
|
|
("COMMIT_EMAIL", build::COMMIT_EMAIL.to_string()),
|
|
|
|
("BUILD_OS", build::BUILD_OS.to_string()),
|
|
("RUST_VERSION", build::RUST_VERSION.to_string()),
|
|
("RUST_CHANNEL", build::RUST_CHANNEL.to_string()),
|
|
("CARGO_VERSION", build::CARGO_VERSION.to_string()),
|
|
("PKG_VERSION", build::PKG_VERSION.to_string()),
|
|
("CARGO_MANIFEST_DIR", build::CARGO_MANIFEST_DIR.to_string()),
|
|
|
|
("PROJECT_NAME", build::PROJECT_NAME.to_string()),
|
|
("BUILD_TIME", build::BUILD_TIME.to_string()),
|
|
("BUILD_RUST_CHANNEL", build::BUILD_RUST_CHANNEL.to_string()),
|
|
("GIT_CLEAN", build::GIT_CLEAN.to_string()),
|
|
("GIT_STATUS_FILE", build::GIT_STATUS_FILE.to_string()),
|
|
|
|
|
|
("cargo tree", build::CARGO_TREE.to_string()),
|
|
];
|
|
|
|
for entry in v {
|
|
bunt::println!("|> {[green]:?} ::: {[cyan]:?}", entry.0, entry.1);
|
|
}
|
|
} |