2023-10-15 04:27:34 +02:00
|
|
|
[package]
|
2023-12-23 03:35:48 +01:00
|
|
|
name = "guestbook"
|
|
|
|
version = "0.2.0"
|
2023-10-15 04:27:34 +02:00
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2024-01-03 03:32:03 +01:00
|
|
|
# core
|
2023-10-15 04:27:34 +02:00
|
|
|
tracing = "0.1.39"
|
|
|
|
tracing-subscriber = "0.3.17"
|
2023-12-23 03:15:06 +01:00
|
|
|
thiserror = "1.0.51"
|
|
|
|
md-5 = "0.10.6"
|
2024-01-02 04:46:38 +01:00
|
|
|
toml = "0.8.8"
|
2024-01-03 03:32:03 +01:00
|
|
|
uuid = { version = "1.6.1", features = ["v4", "fast-rng"] }
|
|
|
|
chrono = { version = "0.4.31", features = ["serde"] }
|
|
|
|
serde = { version = "1.0.189", features = ["derive"] }
|
|
|
|
serde_json = "1.0.107"
|
|
|
|
async-trait = "0.1.73"
|
|
|
|
html-escape = "0.2.13"
|
|
|
|
clap = { version = "4.4.6", features = ["derive"] }
|
|
|
|
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] }
|
|
|
|
axum = "0.6.20"
|
|
|
|
# db providers
|
|
|
|
sqlx = { version = "0.7.3", features = ["runtime-tokio", "tls-rustls", "any"] }
|
|
|
|
# notification providers
|
|
|
|
teloxide = { version = "0.12.2", features = ["macros"], optional = true }
|
2024-01-03 04:25:31 +01:00
|
|
|
mail-send = { version = "0.4.6", optional = true }
|
|
|
|
tokio-rustls = { version = "0.25.0", optional = true }
|
2023-12-22 23:37:02 +01:00
|
|
|
|
|
|
|
[features]
|
2024-01-03 03:32:03 +01:00
|
|
|
default = [
|
|
|
|
"mysql", "sqlite", "postgres",
|
2024-01-03 04:25:31 +01:00
|
|
|
"telegram", "email"
|
2024-01-03 03:32:03 +01:00
|
|
|
]
|
|
|
|
# db drivers
|
|
|
|
mysql = ["sqlx/mysql"]
|
|
|
|
sqlite = ["sqlx/sqlite"]
|
|
|
|
postgres = ["sqlx/postgres"]
|
|
|
|
# notifier providers
|
2023-12-22 23:37:02 +01:00
|
|
|
telegram = ["dep:teloxide"]
|
2024-01-03 04:25:31 +01:00
|
|
|
email = ["dep:mail-send", "dep:tokio-rustls"]
|