cargo: gate telegram behind a default feature
This commit is contained in:
parent
de53e51c60
commit
9f0e3aae6d
6 changed files with 45 additions and 15 deletions
|
|
@ -6,10 +6,14 @@ description = "A configurable, self-hosted guestbook for the web, allowing visit
|
|||
license = "MIT"
|
||||
repository = "https://git.ily.rs/lew/guestbook"
|
||||
|
||||
[features]
|
||||
default = ["telegram"]
|
||||
telegram = ["dep:teloxide"]
|
||||
|
||||
[dependencies]
|
||||
axum = "0.8"
|
||||
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "net"] }
|
||||
teloxide = { version = "0.13", features = ["macros"] }
|
||||
teloxide = { version = "0.13", features = ["macros"], optional = true }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
toml = "0.8"
|
||||
dotenvy = "0.15"
|
||||
|
|
@ -19,6 +23,9 @@ base64 = "0.22"
|
|||
tracing = "0.1"
|
||||
tracing-subscriber = "0.3"
|
||||
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 1
|
||||
|
||||
[dev-dependencies]
|
||||
tower = { version = "0.5", features = ["util"] }
|
||||
http-body-util = "0.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue