feat: versionnement automatique basé sur git (build number + hash)
- build.rs génère version dynamique : X.Y.Z+build.N-abc1234 - Version injectée dans l'API (IMAGOD_BUILD_VERSION) et pages HTML - Suffixe -dirty si modifications non commitées - replace_all_versions() consomme le suffixe build metadata - Suppression auto-changelog — reste manuel pour contrôle qualité
This commit is contained in:
@@ -118,7 +118,7 @@ async fn health_check() -> &'static str {
|
||||
/// Retourne la version de l'application et des infos utiles
|
||||
async fn version() -> Json<serde_json::Value> {
|
||||
Json(serde_json::json!({
|
||||
"version": env!("CARGO_PKG_VERSION"),
|
||||
"version": env!("IMAGOD_BUILD_VERSION"),
|
||||
"name": env!("CARGO_PKG_NAME"),
|
||||
"description": env!("CARGO_PKG_DESCRIPTION"),
|
||||
"repository": env!("CARGO_PKG_REPOSITORY"),
|
||||
|
||||
Reference in New Issue
Block a user