mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-27 04:38:35 -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]]
|
[[package]]
|
||||||
name = "movie_rename"
|
name = "movie_rename"
|
||||||
version = "0.1.0"
|
version = "1.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"load_file",
|
"load_file",
|
||||||
"tmdb",
|
"tmdb",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "movie_rename"
|
name = "movie_rename"
|
||||||
version = "0.1.0"
|
version = "1.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# 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 torrent_name_parser::Metadata;
|
||||||
use youchoose;
|
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 for movie entries
|
||||||
struct MovieEntry {
|
struct MovieEntry {
|
||||||
title: String,
|
title: String,
|
||||||
|
|
Loading…
Reference in a new issue