feat: add COMMIT_HASH build time env var

This commit is contained in:
Tamipes 2025-11-25 16:27:43 +01:00
parent e7d06a45f6
commit 3b7e976deb
3 changed files with 22 additions and 0 deletions

View file

@ -14,6 +14,8 @@ async fn main() {
tracing_subscriber::fmt::init();
let cache = KubeCache::Cache::create().unwrap();
let arcCache = Arc::new(cache);
let commit_hash: &'static str = env!("COMMIT_HASH");
println!("COMMIT_HASH: {}", commit_hash);
let mut listener = TcpListener::bind("0.0.0.0:25565").await.unwrap();