-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
42 lines (37 loc) · 1.46 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[package]
name = "utc-telegram-bot"
version = "1.4.14"
authors = ["Alixinne <alixinne@pm.me>"]
edition = "2018"
[dependencies]
crc = "3.0"
futures = "0.3"
fuzzy-matcher = "0.3"
heck = "0.4"
lazy_static = "1.4"
rand = { version = "0.8", default-features = false, features = ["std_rng", "small_rng", "getrandom"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "1.0"
tokio = { version = "1.34", features = ["macros", "rt-multi-thread", "net", "signal"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# CLI features
paw = "1.0"
structopt = { version = "0.3", features = ["paw"] }
# Server features
chrono = { version = "0.4", optional = true }
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate", "chrono"], optional = true }
telegram-bot = { git = "https://github.com/telegram-rs/telegram-bot.git", rev = "65ad5cf", optional = true }
warp = { version = "0.3", optional = true }
# Image renderer dependencies
image = { version = "0.24", default-features = false, features = ["jpeg"], optional = true }
cairo-rs = { version = "0.18", optional = true }
pangocairo = { version = "0.18", optional = true }
pango = { version = "0.18", optional = true }
sha2 = { version = "0.10", optional = true }
hex = { version = "0.4", optional = true }
[features]
default = ["run"]
run = ["chrono", "sqlx", "telegram-bot", "warp"]
renderer = ["image", "cairo-rs", "pangocairo", "pango", "sha2", "hex"]