Get the version from Cargo.toml

This commit is contained in:
Sayantan Santra 2022-12-09 02:26:39 -06:00
parent b0b313ba23
commit 81095222ff
3 changed files with 5 additions and 3 deletions

2
Cargo.lock generated
View file

@ -669,7 +669,7 @@ dependencies = [
[[package]]
name = "movie_rename"
version = "0.1.0"
version = "1.1.2"
dependencies = [
"load_file",
"tmdb",

View file

@ -1,6 +1,6 @@
[package]
name = "movie_rename"
version = "0.1.0"
version = "1.1.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -4,7 +4,9 @@ use tmdb::{model::*, themoviedb::*};
use torrent_name_parser::Metadata;
use youchoose;
const VERSION: &str = "1.1.2";
// Get the version from Cargo.toml
const VERSION: &str = env!("CARGO_PKG_VERSION");
// Struct for movie entries
struct MovieEntry {
title: String,