feat(cli): let a build name its own version
A nightly printed the same 19.0.0 as the release it followed, so a bug report could not say which one it came from. SOULSEEK_RS_VERSION at compile time replaces the crate version in --version, the TUI and the daemon status.
This commit is contained in:
@@ -522,7 +522,7 @@ impl Daemon {
|
||||
fn identify(&self) -> AuthResult {
|
||||
AuthResult {
|
||||
protocol: PROTOCOL_VERSION,
|
||||
daemon_version: env!("CARGO_PKG_VERSION").to_string(),
|
||||
daemon_version: crate::cli::VERSION.to_string(),
|
||||
username: self.session.username(),
|
||||
}
|
||||
}
|
||||
@@ -532,7 +532,7 @@ impl Daemon {
|
||||
DaemonStatus {
|
||||
username: self.session.username(),
|
||||
server: self.server.clone(),
|
||||
daemon_version: env!("CARGO_PKG_VERSION").to_string(),
|
||||
daemon_version: crate::cli::VERSION.to_string(),
|
||||
protocol: PROTOCOL_VERSION,
|
||||
listen_port: self.session.listen_port(),
|
||||
shared_folders: folders,
|
||||
|
||||
Reference in New Issue
Block a user