Rather than the previous not-very-informative version string which was generated by build.rs and then not updated unless build.rs was touched, use the new `git-testament` crate which does a more complete job at compile time via a proc-macro. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
7 lines
126 B
Rust
7 lines
126 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
let target = env::var("TARGET").unwrap();
|
|
println!("cargo:rustc-env=TARGET={}", target);
|
|
}
|