feat: formmatting is being deprecated
This commit is contained in:
parent
e1b8836732
commit
e9709ed744
1 changed files with 7 additions and 2 deletions
9
build.rs
9
build.rs
|
@ -28,8 +28,13 @@ fn main() {
|
||||||
let git_hash = String::from_utf8(output.stdout).unwrap();
|
let git_hash = String::from_utf8(output.stdout).unwrap();
|
||||||
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
|
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
|
||||||
|
|
||||||
let now = OffsetDateTime::now_utc().format("%y-%m-%d");
|
let now = OffsetDateTime::now_utc();
|
||||||
println!("cargo:rustc-env=COMPILED_DATE={}", &now);
|
println!(
|
||||||
|
"cargo:rustc-env=COMPILED_DATE={}-{}-{}",
|
||||||
|
now.year(),
|
||||||
|
now.month(),
|
||||||
|
now.day()
|
||||||
|
);
|
||||||
|
|
||||||
cache_bust();
|
cache_bust();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue