commit - 279e15e9e0728af0d30657a00028694fa6caf476
commit + 72fbcb51f0ea090f720cfa8b159f8743bb75a079
blob - fedaa2b1d2a80a9dc199386a1f248ca92f4cf54c
blob + 71b8053306d1a65d0c8084fb661f14740c9b7afb
--- .gitignore
+++ .gitignore
/target
.env
+dev.db
blob - ab34aff9e612ca78b39aab7c6084f2b7b1e2778e
blob + 3dcf69f4c611f5b3fab98d9344d38e27a52ca073
--- Cargo.lock
+++ Cargo.lock
[[package]]
name = "rss-email"
-version = "0.2.0"
+version = "0.2.1"
dependencies = [
"anyhow",
"chrono",
blob - 61dfb044ff517fbf1c8bb33821f87538495046b9
blob + 08ff69107e32a1b03daeb02e837709dd37aafcbe
--- Cargo.toml
+++ Cargo.toml
[package]
name = "rss-email"
-version = "0.2.0"
+version = "0.2.1"
authors = ["witcher <witcher@wiredspace.de>"]
edition = "2021"
blob - b2c5efa537328a379e0e8e1ffc57c4616061a6cd
blob + 0d15980c1d692de242b85fa01246d6a27b7e0b54
--- src/cli.rs
+++ src/cli.rs
use log::*;
use std::path::PathBuf;
+use super::{AUTHORS, VERSION};
+
#[derive(Parser)]
#[clap(name = "rss-email")]
-#[clap(author = "witcher <witcher@wiredspace.de>")]
-#[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
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();