mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 22:36:03 +00:00
13 lines
421 B
Rust
13 lines
421 B
Rust
fn main() {
|
|
// Rebuild program if any file in commands directory changes.
|
|
println!("cargo:rerun-if-changed=src/commands");
|
|
// Rerun build script if any code is modified
|
|
println!("cargo:rerun-if-changed=src");
|
|
|
|
// 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")
|
|
);
|
|
}
|