2019-09-01 22:51:07 +06:00
|
|
|
[package]
|
2019-12-07 22:30:15 +03:00
|
|
|
name = "teloxide"
|
2021-10-25 15:52:57 +03:00
|
|
|
version = "0.5.3"
|
2019-09-01 22:51:07 +06:00
|
|
|
edition = "2018"
|
2020-02-14 17:10:49 +06: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 23:14:45 +06:00
|
|
|
keywords = ["teloxide", "telegram", "telegram-bot", "telegram-bot-api"]
|
2021-07-08 15:31:35 +06:00
|
|
|
categories = ["web-programming", "api-bindings", "asynchronous"]
|
2020-02-14 17:10:49 +06:00
|
|
|
license = "MIT"
|
2020-02-19 22:37:12 +06:00
|
|
|
exclude = ["media"]
|
2019-09-01 22:51:07 +06:00
|
|
|
|
2020-03-13 00:38:35 +03:00
|
|
|
[features]
|
2022-01-28 20:52:01 +06:00
|
|
|
default = ["native-tls", "ctrlc_handler", "teloxide-core/default", "auto-send", "cache-me", "dispatching2"]
|
2021-05-18 18:52:29 +03:00
|
|
|
|
2022-01-06 14:50:59 +02:00
|
|
|
dispatching2 = ["dptree"]
|
2021-11-25 13:44:55 +02:00
|
|
|
|
2020-07-31 15:59:26 +03:00
|
|
|
sqlite-storage = ["sqlx"]
|
2020-03-13 00:38:35 +03:00
|
|
|
redis-storage = ["redis"]
|
|
|
|
cbor-serializer = ["serde_cbor"]
|
|
|
|
bincode-serializer = ["bincode"]
|
2019-09-01 22:51:07 +06:00
|
|
|
|
2020-07-26 03:10:48 +06:00
|
|
|
frunk- = ["frunk"]
|
2020-10-02 11:13:27 +02:00
|
|
|
macros = ["teloxide-macros"]
|
|
|
|
|
2021-05-18 18:30:57 +03:00
|
|
|
ctrlc_handler = ["tokio/signal"]
|
|
|
|
|
2021-03-21 18:34:23 +06:00
|
|
|
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"]
|
2021-08-05 22:17:44 +06:00
|
|
|
trace-adaptor = ["teloxide-core/trace_adaptor"]
|
|
|
|
erased = ["teloxide-core/erased"]
|
2021-03-21 18:34:23 +06:00
|
|
|
|
|
|
|
# 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",
|
2021-05-18 18:30:57 +03:00
|
|
|
"ctrlc_handler",
|
2021-03-21 18:34:23 +06:00
|
|
|
"teloxide-core/full",
|
|
|
|
"native-tls",
|
|
|
|
"rustls",
|
|
|
|
"auto-send",
|
|
|
|
"throttle",
|
2021-08-05 22:17:44 +06:00
|
|
|
"cache-me",
|
|
|
|
"trace-adaptor",
|
|
|
|
"erased",
|
2021-03-21 18:34:23 +06:00
|
|
|
]
|
2020-08-12 23:21:13 +03:00
|
|
|
|
2019-09-01 22:51:07 +06:00
|
|
|
[dependencies]
|
2022-02-04 09:59:14 +06:00
|
|
|
teloxide-core = { version = "0.4", default-features = false }
|
2022-02-03 20:39:32 +06:00
|
|
|
teloxide-macros = { git = "https://github.com/teloxide/teloxide-macros.git", branch = "dispatching2", optional = true }
|
2019-10-11 15:01:58 +03:00
|
|
|
|
2021-02-22 08:14:33 +06:00
|
|
|
serde_json = "1.0"
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2019-10-11 15:01:58 +03:00
|
|
|
|
2021-12-26 16:55:24 +02:00
|
|
|
dptree = { git = "https://github.com/p0lunin/dptree", optional = true }
|
2021-11-13 12:35:56 +02:00
|
|
|
|
2021-07-05 21:28:03 +03:00
|
|
|
tokio = { version = "1.8", features = ["fs"] }
|
2021-02-22 08:14:33 +06:00
|
|
|
tokio-util = "0.6"
|
|
|
|
tokio-stream = "0.1"
|
|
|
|
|
2021-06-18 20:53:03 +06:00
|
|
|
flurry = "0.3"
|
2021-02-22 08:14:33 +06:00
|
|
|
log = "0.4"
|
|
|
|
bytes = "1.0"
|
|
|
|
mime = "0.3"
|
2020-01-05 02:35:25 +06:00
|
|
|
|
2021-02-22 08:14:33 +06:00
|
|
|
derive_more = "0.99"
|
|
|
|
thiserror = "1.0"
|
|
|
|
async-trait = "0.1"
|
2021-12-11 13:11:25 +02:00
|
|
|
futures = "0.3.15"
|
2021-02-22 08:14:33 +06:00
|
|
|
pin-project = "1.0"
|
|
|
|
serde_with_macros = "1.4"
|
2020-02-03 17:14:59 +06:00
|
|
|
|
2021-02-22 08:14:33 +06:00
|
|
|
sqlx = { version = "0.5", optional = true, default-features = false, features = [
|
2020-11-24 21:26:16 +06:00
|
|
|
"runtime-tokio-native-tls",
|
2020-07-31 15:59:26 +03:00
|
|
|
"macros",
|
2020-10-19 02:15:46 +03:00
|
|
|
"sqlite",
|
2020-07-31 15:59:26 +03:00
|
|
|
] }
|
2021-03-21 21:43:19 +03:00
|
|
|
redis = { version = "0.20", features = ["tokio-comp"], optional = true }
|
2021-02-22 08:14:33 +06:00
|
|
|
serde_cbor = { version = "0.11", optional = true }
|
|
|
|
bincode = { version = "1.3", optional = true }
|
2021-07-05 21:28:03 +03:00
|
|
|
frunk = { version = "0.4", optional = true }
|
2022-01-25 20:25:19 +03:00
|
|
|
aquamarine = "0.1.11"
|
2020-03-13 00:38:35 +03:00
|
|
|
|
2020-02-14 14:41:03 +06:00
|
|
|
[dev-dependencies]
|
|
|
|
smart-default = "0.6.0"
|
2021-02-22 08:14:33 +06:00
|
|
|
rand = "0.8.3"
|
2020-02-14 14:41:03 +06:00
|
|
|
pretty_env_logger = "0.4.0"
|
2020-02-19 05:46:49 +06:00
|
|
|
lazy_static = "1.4.0"
|
2022-02-02 03:54:00 +06:00
|
|
|
anyhow = "1.0.52"
|
|
|
|
serde = "1"
|
|
|
|
serde_json = "1"
|
2021-07-05 21:28:03 +03:00
|
|
|
tokio = { version = "1.8", features = ["fs", "rt-multi-thread", "macros"] }
|
2022-02-02 03:54:00 +06:00
|
|
|
warp = "0.3.0"
|
|
|
|
reqwest = "0.10.4"
|
|
|
|
chrono = "0.4"
|
2020-08-12 22:48:36 +03:00
|
|
|
|
2020-10-26 07:27:13 +02:00
|
|
|
[package.metadata.docs.rs]
|
2020-08-12 22:48:36 +03:00
|
|
|
all-features = true
|
2021-05-15 23:26:20 +03:00
|
|
|
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
|
2021-07-07 20:27:38 +03:00
|
|
|
rustc-args = ["--cfg", "dep_docsrs"]
|
2022-02-02 03:54:00 +06:00
|
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
2020-08-12 23:53:58 +03:00
|
|
|
|
|
|
|
[[test]]
|
|
|
|
name = "redis"
|
|
|
|
path = "tests/redis.rs"
|
|
|
|
required-features = ["redis-storage", "cbor-serializer", "bincode-serializer"]
|
2020-10-24 19:51:55 +03:00
|
|
|
|
|
|
|
[[test]]
|
|
|
|
name = "sqlite"
|
|
|
|
path = "tests/sqlite.rs"
|
|
|
|
required-features = ["sqlite-storage", "cbor-serializer", "bincode-serializer"]
|
2022-02-02 03:54:00 +06:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "dialogue"
|
2022-02-03 02:36:36 +06:00
|
|
|
required-features = ["macros"]
|
2022-02-02 03:54:00 +06:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "sqlite_remember"
|
|
|
|
required-features = ["sqlite-storage", "bincode-serializer", "redis-storage", "macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "simple_commands"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "redis_remember"
|
|
|
|
required-features = ["redis-storage", "bincode-serializer", "macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "inline"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "buttons"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "admin"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "dispatching2_features"
|
|
|
|
required-features = ["macros"]
|