Use env!("CARGO_PKG_VERSION")

This commit is contained in:
blank X 2021-02-04 11:43:14 +07:00
parent aed8a28aac
commit 15530a4287
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,7 @@ extern crate tokio;
fn main() {
let matches = App::new("hanimers")
.about("hanime.tv downloader in rust")
// let's hope i remember to bump the version xd
.version("0.1.3")
.version(env!("CARGO_PKG_VERSION"))
.setting(AppSettings::SubcommandRequiredElseHelp)
.subcommand(
SubCommand::with_name("search")