Stamp the version as YYYY.MM.DD-<branch>-<sha>

build.rs builds the string (git, or SLINUXM_* env for builds without .git)
and the lib exposes it as VERSION. --version, /healthz, /api/v1/ping, MCP
server info and OTel service.version use it; OpenAPI info.version stays on
the semver so docs/openapi.json does not change per commit. The flake passes
the commit date and short rev to the package.
This commit is contained in:
ari committed 2026-10-20 23:27:46 -04:00
1 parent 435a54a02d
commit 1a30b20ac0
18 files changed
+322 -18

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ pub fn routes() -> Router<AppState> {
pub(crate) async fn ping() -> Json<serde_json::Value> {
Json(serde_json::json!({
"status": "ok",
"version": env!("CARGO_PKG_VERSION"),
"version": crate::VERSION,
}))
}