mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-25 19:58:36 -06:00
Get the version from Cargo.toml
This commit is contained in:
parent
b0b313ba23
commit
81095222ff
3 changed files with 5 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -669,7 +669,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "movie_rename"
|
||||
version = "0.1.0"
|
||||
version = "1.1.2"
|
||||
dependencies = [
|
||||
"load_file",
|
||||
"tmdb",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue