Compare commits

...

2 Commits

Author SHA1 Message Date
Bernhard M. Wiedemann
58e199af9e
Merge 0f56d12a7e into 696110eae5 2024-10-27 13:06:52 +00:00
Bernhard M. Wiedemann
0f56d12a7e
Replace BUILD_DATE with CARGO_PKG_VERSION
to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.
2024-10-27 14:06:40 +01:00
3 changed files with 2 additions and 10 deletions

View File

@ -7,8 +7,7 @@ edition = "2021"
license.workspace = true
repository = "https://github.com/ChrisTitusTech/linutil/tree/main/tui"
version.workspace = true
include = ["src/*.rs", "Cargo.toml", "build.rs", "cool_tips.txt", "../man/linutil.1"]
build = "build.rs"
include = ["src/*.rs", "Cargo.toml", "cool_tips.txt", "../man/linutil.1"]
[features]
default = ["tips"]

View File

@ -1,7 +0,0 @@
fn main() {
// Add current date as a variable to be displayed in the 'Linux Toolbox' text.
println!(
"cargo:rustc-env=BUILD_DATE={}",
chrono::Local::now().format("%Y-%m-%d")
);
}

View File

@ -24,7 +24,7 @@ use temp_dir::TempDir;
const MIN_WIDTH: u16 = 77;
const MIN_HEIGHT: u16 = 19;
const TITLE: &str = concat!("Linux Toolbox - ", env!("BUILD_DATE"));
const TITLE: &str = concat!("Linux Toolbox - ", env!("CARGO_PKG_VERSION"));
const ACTIONS_GUIDE: &str = "List of important tasks performed by commands' names:
D - disk modifications (ex. partitioning) (privileged)