From c3290e2ce6d68b95ab6a1050b57e5ca4a9c7b968 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 5 Sep 2023 12:23:08 -0700 Subject: [PATCH] macro version into window title --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5d36a9f7..40e2be70 100644 --- a/src/main.rs +++ b/src/main.rs @@ -634,5 +634,9 @@ impl strafe_client::framework::Example for Skybox { } fn main() { - strafe_client::framework::run::("Strafe Client v0.1"); + strafe_client::framework::run::( + format!("Strafe Client v{}", + env!("CARGO_PKG_VERSION") + ).as_str() + ); }