-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cargo.toml
56 lines (48 loc) · 1.38 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "carapax"
description = "A Telegram Bot Framework"
version = "0.28.0"
authors = ["Ross Nomann <[email protected]>"]
edition = "2021"
readme = "./README.md"
license = "MIT"
documentation = "https://docs.rs/carapax"
repository = "https://github.com/tg-rs/carapax"
[features]
# include nothing by default
default = []
# enable everything
full = ["access", "dialogue", "ratelimit", "session-redis", "session-fs", "webhook"]
access = ["dep:serde"]
dialogue = ["session", "dep:serde"]
ratelimit = ["dep:governor", "dep:nonzero_ext"]
session = ["dep:seance"]
session-fs = ["session", "seance?/fs-backend"]
session-redis = ["session", "seance?/redis-backend"]
webhook = ["tgbot/webhook"]
[dependencies]
futures-util = "0.3"
governor = { version = "0.8", optional = true }
log = "0.4"
nonzero_ext = { version = "0.3", optional = true }
seance = { version = "0.16", optional = true }
serde = { version = "1.0", optional = true }
tgbot = "0.34"
tokio = "1.42"
[dev-dependencies]
dotenvy = "0.15"
env_logger = "0.11"
regex = "1.11"
serde_json = "1.0"
tempfile = "3.14"
tokio = { version = "1.42", features = ["macros", "rt-multi-thread"] }
toml = "0.8"
[lints.rust]
missing_docs = "warn"
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(nightly)'] }
[[example]]
name = "app"
required-features = ["full"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "nightly"]