chore: update lockfile and bump deps, add metadata

This commit is contained in:
əlemi 2024-01-03 19:16:02 +01:00
parent a685765138
commit 32b20000c1
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 32 additions and 26 deletions

6
Cargo.lock generated
View file

@ -896,7 +896,7 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253"
[[package]] [[package]]
name = "guestbook" name = "guestbook"
version = "0.3.0" version = "0.3.1"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",
@ -3546,9 +3546,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
[[package]] [[package]]
name = "winnow" name = "winnow"
version = "0.5.31" version = "0.5.32"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97a4882e6b134d6c28953a387571f1acdd3496830d5e36c5e3a1075580ea641c" checksum = "8434aeec7b290e8da5c3f0d628cb0eac6cabcb31d14bb74f779a08109a5914d6"
dependencies = [ dependencies = [
"memchr", "memchr",
] ]

View file

@ -1,35 +1,41 @@
[package] [package]
name = "guestbook" name = "guestbook"
version = "0.3.0" version = "0.3.1"
authors = ["alemi <me@alemi.dev>"]
description = "an easy to deploy and customizable guestbook for your site "
repository = "https://git.alemi.dev/guestbook.rs/"
keywords = ["selfhost", "guestbook", "comments", "sqlx", "axum"]
license-file = "LICENSE.txt"
readme = "README.md"
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
[dependencies] [dependencies]
# core # core
tracing = "0.1.39" tracing = "0.1"
tracing-subscriber = "0.3.17" tracing-subscriber = "0.3"
thiserror = "1.0.51" thiserror = "1"
md-5 = "0.10.6" md-5 = "0.10"
toml = "0.8.8" toml = "0.8"
uuid = { version = "1.6.1", features = ["v4", "fast-rng"] } uuid = { version = "1.6", features = ["v4", "fast-rng"] }
chrono = { version = "0.4.31", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] }
serde = { version = "1.0.189", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1.0.107" serde_json = "1"
async-trait = "0.1.73" async-trait = "0.1"
html-escape = "0.2.13" html-escape = "0.2"
clap = { version = "4.4.6", features = ["derive"] } clap = { version = "4.4", features = ["derive", "cargo"] }
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] } tokio = { version = "1.35", features = ["macros", "rt-multi-thread"] }
axum = "0.7.3" axum = "0.7"
# db providers # db providers
sqlx = { version = "0.7.3", features = ["runtime-tokio", "tls-rustls", "any"] } sqlx = { version = "0.7", features = ["runtime-tokio", "tls-rustls", "any"] }
# notification providers # notification providers
teloxide = { version = "0.12.2", features = ["macros"], optional = true } teloxide = { version = "0.12", features = ["macros"], optional = true }
mail-send = { version = "0.4.6", optional = true } mail-send = { version = "0.4", optional = true }
tokio-rustls = { version = "0.25.0", optional = true } tokio-rustls = { version = "0.25", optional = true }
# frontend # frontend
sailfish = { version = "0.8.3", optional = true } sailfish = { version = "0.8", optional = true }
axum-extra = "0.9.1" axum-extra = { version = "0.9", optional = true }
[features] [features]
default = ["mysql", "sqlite", "postgres", "telegram", "email", "web"] # all features by default default = ["mysql", "sqlite", "postgres", "telegram", "email", "web"] # all features by default
@ -41,4 +47,4 @@ postgres = ["sqlx/postgres"]
telegram = ["dep:teloxide"] telegram = ["dep:teloxide"]
email = ["dep:mail-send", "dep:tokio-rustls"] email = ["dep:mail-send", "dep:tokio-rustls"]
# frontend # frontend
web = ["dep:sailfish"] web = ["dep:sailfish", "dep:axum-extra"]

View file

@ -15,7 +15,7 @@ mod web;
#[derive(Debug, Clone, Parser)] #[derive(Debug, Clone, Parser)]
#[command(author, version, about)] #[command(author = clap::crate_authors!("\n"), version = clap::crate_version!(), about = clap::crate_description!())]
/// api for sending anonymous telegram messages to a specific user /// api for sending anonymous telegram messages to a specific user
struct CliArgs { struct CliArgs {
/// action to execute /// action to execute