fix: Make sure empty VERSION_EXTRA strings are ignored

Also updates built & removes unused optional features
This commit is contained in:
Jade Ellis 2025-05-21 12:35:25 +01:00
parent f605913ea9
commit 3e4e696761
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
7 changed files with 24 additions and 47 deletions

View file

@ -26,6 +26,6 @@ pub fn user_agent() -> &'static str { USER_AGENT.get_or_init(init_user_agent) }
fn init_user_agent() -> String { format!("{}/{}", name(), version()) }
fn init_version() -> String {
conduwuit_build_metadata::VERSION_EXTRA
conduwuit_build_metadata::version_tag()
.map_or(SEMANTIC.to_owned(), |extra| format!("{SEMANTIC} ({extra})"))
}