teloxide/Cargo.toml

117 lines
3.2 KiB
TOML
Raw Normal View History

2019-09-01 18:51:07 +02:00
[package]
2019-12-07 20:30:15 +01:00
name = "teloxide"
2021-10-25 14:52:57 +02:00
version = "0.5.3"
2019-09-01 18:51:07 +02:00
edition = "2018"
2020-02-14 12:10:49 +01:00
description = "An elegant Telegram bots framework for Rust"
repository = "https://github.com/teloxide/teloxide"
documentation = "https://docs.rs/teloxide/"
readme = "README.md"
2020-02-19 18:14:45 +01:00
keywords = ["teloxide", "telegram", "telegram-bot", "telegram-bot-api"]
categories = ["web-programming", "api-bindings", "asynchronous"]
2020-02-14 12:10:49 +01:00
license = "MIT"
2020-02-19 17:37:12 +01:00
exclude = ["media"]
2019-09-01 18:51:07 +02:00
[features]
default = ["native-tls", "ctrlc_handler", "teloxide-core/default", "auto-send", "new-dispatching"]
old-dispatching = []
new-dispatching = ["dptree"]
sqlite-storage = ["sqlx"]
redis-storage = ["redis"]
cbor-serializer = ["serde_cbor"]
bincode-serializer = ["bincode"]
2019-09-01 18:51:07 +02:00
2020-07-25 23:10:48 +02:00
frunk- = ["frunk"]
macros = ["teloxide-macros"]
ctrlc_handler = ["tokio/signal"]
native-tls = ["teloxide-core/native-tls"]
rustls = ["teloxide-core/rustls"]
auto-send = ["teloxide-core/auto_send"]
throttle = ["teloxide-core/throttle"]
cache-me = ["teloxide-core/cache_me"]
trace-adaptor = ["teloxide-core/trace_adaptor"]
erased = ["teloxide-core/erased"]
# currently used for `README.md` tests, building docs for `docsrs` to add `This is supported on feature="..." only.`,
# and for teloxide-core.
nightly = ["teloxide-core/nightly"]
full = [
"sqlite-storage",
"redis-storage",
"cbor-serializer",
"bincode-serializer",
"frunk",
"macros",
"ctrlc_handler",
"teloxide-core/full",
"native-tls",
"rustls",
"auto-send",
"throttle",
"cache-me",
"trace-adaptor",
"erased",
]
2019-09-01 18:51:07 +02:00
[dependencies]
2021-08-05 13:44:47 +02:00
teloxide-core = { version = "0.3.3", default-features = false }
2021-07-05 20:28:03 +02:00
#teloxide-core = { git = "https://github.com/teloxide/teloxide-core.git", rev = "...", default-features = false }
2021-12-29 12:33:51 +01:00
#teloxide-macros = { version = "0.4", optional = true }
teloxide-macros = { git = "https://github.com/teloxide/teloxide-macros", branch = "dispatching2", optional = true }
2021-02-22 03:14:33 +01:00
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
dptree = { git = "https://github.com/p0lunin/dptree", optional = true }
2021-07-05 20:28:03 +02:00
tokio = { version = "1.8", features = ["fs"] }
2021-02-22 03:14:33 +01:00
tokio-util = "0.6"
tokio-stream = "0.1"
2021-06-18 16:53:03 +02:00
flurry = "0.3"
2021-02-22 03:14:33 +01:00
log = "0.4"
bytes = "1.0"
mime = "0.3"
2020-01-04 21:35:25 +01:00
2021-02-22 03:14:33 +01:00
derive_more = "0.99"
thiserror = "1.0"
async-trait = "0.1"
futures = "0.3.15"
2021-02-22 03:14:33 +01:00
pin-project = "1.0"
serde_with_macros = "1.4"
2021-02-22 03:14:33 +01:00
sqlx = { version = "0.5", optional = true, default-features = false, features = [
"runtime-tokio-native-tls",
"macros",
2020-10-19 01:15:46 +02:00
"sqlite",
] }
redis = { version = "0.20", features = ["tokio-comp"], optional = true }
2021-02-22 03:14:33 +01:00
serde_cbor = { version = "0.11", optional = true }
bincode = { version = "1.3", optional = true }
2021-07-05 20:28:03 +02:00
frunk = { version = "0.4", optional = true }
2020-02-14 09:41:03 +01:00
[dev-dependencies]
smart-default = "0.6.0"
2021-02-22 03:14:33 +01:00
rand = "0.8.3"
2020-02-14 09:41:03 +01:00
pretty_env_logger = "0.4.0"
lazy_static = "1.4.0"
2021-07-05 20:28:03 +02:00
tokio = { version = "1.8", features = ["fs", "rt-multi-thread", "macros"] }
[package.metadata.docs.rs]
all-features = true
2021-05-15 22:26:20 +02:00
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
rustc-args = ["--cfg", "dep_docsrs"]
[[test]]
name = "redis"
path = "tests/redis.rs"
required-features = ["redis-storage", "cbor-serializer", "bincode-serializer"]
2020-10-24 18:51:55 +02:00
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
required-features = ["sqlite-storage", "cbor-serializer", "bincode-serializer"]