commit 72fbcb51f0ea090f720cfa8b159f8743bb75a079 from: witcher date: Sat Dec 3 13:05:38 2022 UTC Acquire author/version info from Cargo.toml commit - 279e15e9e0728af0d30657a00028694fa6caf476 commit + 72fbcb51f0ea090f720cfa8b159f8743bb75a079 blob - fedaa2b1d2a80a9dc199386a1f248ca92f4cf54c blob + 71b8053306d1a65d0c8084fb661f14740c9b7afb --- .gitignore +++ .gitignore @@ -1,2 +1,3 @@ /target .env +dev.db blob - ab34aff9e612ca78b39aab7c6084f2b7b1e2778e blob + 3dcf69f4c611f5b3fab98d9344d38e27a52ca073 --- Cargo.lock +++ Cargo.lock @@ -1138,7 +1138,7 @@ dependencies = [ [[package]] name = "rss-email" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "chrono", blob - 61dfb044ff517fbf1c8bb33821f87538495046b9 blob + 08ff69107e32a1b03daeb02e837709dd37aafcbe --- Cargo.toml +++ Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rss-email" -version = "0.2.0" +version = "0.2.1" authors = ["witcher "] edition = "2021" blob - b2c5efa537328a379e0e8e1ffc57c4616061a6cd blob + 0d15980c1d692de242b85fa01246d6a27b7e0b54 --- src/cli.rs +++ src/cli.rs @@ -2,10 +2,12 @@ use clap::Parser; use log::*; use std::path::PathBuf; +use super::{AUTHORS, VERSION}; + #[derive(Parser)] #[clap(name = "rss-email")] -#[clap(author = "witcher ")] -#[clap(version = "0.2.1")] +#[clap(author = AUTHORS)] +#[clap(version = VERSION)] #[clap(about = "Fetch RSS Feeds and send them via E-Mail")] pub struct Cli { // TODO: replace with default value instead of specifying an `Option` blob - 688f1b9c81624ce7802c714110d98fb0dc42255f blob + 68bf335cec8a60919dc6be79f56fe70973af6091 --- src/main.rs +++ src/main.rs @@ -21,6 +21,9 @@ use std::{ use sqlx::{pool::PoolConnection, sqlite::SqlitePoolOptions, Sqlite}; use tokio::task::JoinSet; +const VERSION: &str = env!("CARGO_PKG_VERSION"); +const AUTHORS: &str = env!("CARGO_PKG_AUTHORS"); + #[tokio::main] async fn main() -> anyhow::Result<()> { env_logger::init();