mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-25 09:50:52 +00:00
Still not there....to get it reporting in a user-visible fashion I'm realizing I'm going to have to build a dedicated facility in Xous to track this because otherwise I have to trigger the automatic rebuild of a "heavy" program that would naturally encapsulate such information. Maybe for now, though, at least over the serial port I can get a somewhat relevant string???
15 lines
640 B
Rust
15 lines
640 B
Rust
use vergen::{ConstantsFlags, generate_cargo_keys};
|
|
|
|
fn main() {
|
|
// Setup the flags, toggling off the 'SEMVER_FROM_CARGO_PKG' flag
|
|
let flags = ConstantsFlags::all();
|
|
|
|
// Generate the 'cargo:' key output
|
|
generate_cargo_keys(flags).expect("Unable to generate the cargo keys!");
|
|
|
|
// 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
|
|
}
|