Skip to content

Commit 28b8237

Browse files
committed
Update Cargo.toml
- Reformat - Remove obsolete package.authors
1 parent 5803a43 commit 28b8237

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

Cargo.toml

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
[package]
22
name = "carapax"
3-
description = "A Telegram Bot Framework"
43
version = "0.33.0"
5-
authors = ["Ross Nomann <rossnomann@protonmail.com>"]
64
edition = "2024"
7-
readme = "./README.md"
8-
license = "MIT"
5+
description = "A Telegram Bot Framework"
96
documentation = "https://docs.rs/carapax"
7+
readme = "./README.md"
108
repository = "https://github.com/tg-rs/carapax"
9+
license = "MIT"
1110

12-
[features]
13-
# include nothing by default
14-
default = []
15-
16-
# enable everything
17-
full = ["access", "dialogue", "ratelimit", "session-redis", "session-fs", "webhook"]
11+
[package.metadata.docs.rs]
12+
all-features = true
13+
rustdoc-args = ["--cfg", "nightly"]
1814

19-
access = ["dep:serde"]
20-
dialogue = ["session", "dep:serde"]
21-
ratelimit = ["dep:governor", "dep:nonzero_ext"]
22-
session = ["dep:seance"]
23-
session-fs = ["session", "seance?/fs-backend"]
24-
session-redis = ["session", "seance?/redis-backend"]
25-
webhook = ["tgbot/webhook"]
15+
[[example]]
16+
name = "app"
17+
required-features = ["full"]
2618

2719
[dependencies]
2820
futures-util = "0.3"
@@ -43,14 +35,26 @@ tempfile = "3"
4335
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
4436
toml = "0.9"
4537

38+
[features]
39+
# include nothing by default
40+
default = []
41+
access = ["dep:serde"]
42+
dialogue = ["dep:serde", "session"]
43+
# enable everything
44+
full = [
45+
"access",
46+
"dialogue",
47+
"ratelimit",
48+
"session-fs",
49+
"session-redis",
50+
"webhook"
51+
]
52+
ratelimit = ["dep:governor", "dep:nonzero_ext"]
53+
session = ["dep:seance"]
54+
session-fs = ["seance?/fs-backend", "session"]
55+
session-redis = ["seance?/redis-backend", "session"]
56+
webhook = ["tgbot/webhook"]
57+
4658
[lints.rust]
4759
missing_docs = "warn"
48-
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(nightly)'] }
49-
50-
[[example]]
51-
name = "app"
52-
required-features = ["full"]
53-
54-
[package.metadata.docs.rs]
55-
all-features = true
56-
rustdoc-args = ["--cfg", "nightly"]
60+
unexpected_cfgs = { level = "allow", check-cfg = ["cfg(nightly)"] }

0 commit comments

Comments
 (0)