get version during compile time from cargo metadata

This commit is contained in:
Henrik Friedrichsen
2019-11-30 17:39:34 +01:00
parent feee204f9c
commit e8f8b25de7

View File

@@ -118,7 +118,7 @@ fn get_credentials(reset: bool) -> Credentials {
fn main() {
let matches = App::new("ncspot")
.version("0.1.0")
.version(env!("CARGO_PKG_VERSION"))
.author("Henrik Friedrichsen <henrik@affekt.org> and contributors")
.about("cross-platform ncurses Spotify client")
.arg(