Add macro to get rustc version. (#62)

Add macro to query git-describe. (#62)

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-06-12 21:32:35 +00:00
parent 5799059196
commit b0b441d534
4 changed files with 109 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ use std::sync::OnceLock;
static BRANDING: &str = "Tuwunel";
static SEMANTIC: &str = env!("CARGO_PKG_VERSION");
tuwunel_macros::git_describe!();
static VERSION: OnceLock<String> = OnceLock::new();
static USER_AGENT: OnceLock<String> = OnceLock::new();