2022-01-25 08:37:50 +00:00
|
|
|
use vergen::{ConstantsFlags, generate_cargo_keys};
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
// Setup the flags, toggling off the 'SEMVER_FROM_CARGO_PKG' flag
|
2022-01-30 20:12:43 +00:00
|
|
|
let flags = ConstantsFlags::all();
|
2022-01-25 08:37:50 +00:00
|
|
|
|
|
|
|
|
// Generate the 'cargo:' key output
|
|
|
|
|
generate_cargo_keys(flags).expect("Unable to generate the cargo keys!");
|
2022-01-31 05:16:09 +00:00
|
|
|
|
|
|
|
|
// touch the log server to force it to pick up the version
|
|
|
|
|
let ts = filetime::FileTime::from_system_time(std::time::SystemTime::now());
|
|
|
|
|
filetime::set_file_mtime("../services/log-server/src/main.rs", ts).unwrap();
|
|
|
|
|
|
|
|
|
|
// note that shellchat won't pick up the vesion, but because it's a big crate to rebuild we aren't re-triggering it
|
2022-01-25 08:37:50 +00:00
|
|
|
}
|