mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
add version for package push
This commit is contained in:
parent
f8a2ea51bb
commit
2f97738449
1 changed files with 18 additions and 0 deletions
18
services/xous-ticktimer/src/version.rs
Normal file
18
services/xous-ticktimer/src/version.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
// Versioning information is kept in a separate file, attached to a small, well-known server in the Xous System
|
||||||
|
// This is a trade-off between rebuild times and flexibility.
|
||||||
|
// This was autogenerated by xtask/src/main.rs:print_header(). Do not edit manually.
|
||||||
|
|
||||||
|
pub(crate) fn get_version() -> crate::api::VersionString {
|
||||||
|
let mut v = crate::api::VersionString {
|
||||||
|
version: xous_ipc::String::new()
|
||||||
|
};
|
||||||
|
v.version.append(SEMVER).ok();
|
||||||
|
#[cfg(not(feature="no-timestamp"))]
|
||||||
|
v.version.append("\n").ok();
|
||||||
|
#[cfg(not(feature="no-timestamp"))]
|
||||||
|
v.version.append(TIMESTAMP).ok();
|
||||||
|
v
|
||||||
|
}
|
||||||
|
#[allow(dead_code)]
|
||||||
|
pub const TIMESTAMP: &'static str = "Mon, 10 Oct 2022 02:51:35 +0800";
|
||||||
|
pub const SEMVER: &'static str = "v0.9.10-6-gb1eecb4c";
|
||||||
Loading…
Reference in a new issue