2019-09-01 18:51:07 +02:00
|
|
|
[package]
|
2019-12-07 20:30:15 +01:00
|
|
|
name = "teloxide"
|
2022-07-22 14:55:58 +02:00
|
|
|
version = "0.10.1"
|
2022-04-13 14:17:06 +02:00
|
|
|
edition = "2021"
|
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"]
|
2021-07-08 11:31:35 +02:00
|
|
|
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
|
|
|
|
2020-03-12 22:38:35 +01:00
|
|
|
[features]
|
2022-04-05 15:18:37 +02:00
|
|
|
default = ["native-tls", "ctrlc_handler", "teloxide-core/default", "auto-send"]
|
2021-11-25 12:44:55 +01:00
|
|
|
|
2022-07-01 21:21:39 +02:00
|
|
|
webhooks = ["rand"]
|
|
|
|
webhooks-axum = ["webhooks", "axum", "tower", "tower-http"]
|
2022-03-17 23:39:56 +01:00
|
|
|
|
2020-07-31 14:59:26 +02:00
|
|
|
sqlite-storage = ["sqlx"]
|
2020-03-12 22:38:35 +01:00
|
|
|
redis-storage = ["redis"]
|
|
|
|
cbor-serializer = ["serde_cbor"]
|
|
|
|
bincode-serializer = ["bincode"]
|
2019-09-01 18:51:07 +02:00
|
|
|
|
2020-10-02 11:13:27 +02:00
|
|
|
macros = ["teloxide-macros"]
|
|
|
|
|
2021-05-18 17:30:57 +02:00
|
|
|
ctrlc_handler = ["tokio/signal"]
|
|
|
|
|
2021-03-21 13:34:23 +01: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 18:17:44 +02:00
|
|
|
trace-adaptor = ["teloxide-core/trace_adaptor"]
|
|
|
|
erased = ["teloxide-core/erased"]
|
2021-03-21 13:34:23 +01: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 = [
|
2022-03-17 23:39:56 +01:00
|
|
|
"webhooks-axum",
|
2021-03-21 13:34:23 +01:00
|
|
|
"sqlite-storage",
|
|
|
|
"redis-storage",
|
|
|
|
"cbor-serializer",
|
|
|
|
"bincode-serializer",
|
|
|
|
"macros",
|
2021-05-18 17:30:57 +02:00
|
|
|
"ctrlc_handler",
|
2021-03-21 13:34:23 +01:00
|
|
|
"teloxide-core/full",
|
|
|
|
"native-tls",
|
|
|
|
"rustls",
|
|
|
|
"auto-send",
|
|
|
|
"throttle",
|
2021-08-05 18:17:44 +02:00
|
|
|
"cache-me",
|
|
|
|
"trace-adaptor",
|
|
|
|
"erased",
|
2021-03-21 13:34:23 +01:00
|
|
|
]
|
2020-08-12 22:21:13 +02:00
|
|
|
|
2019-09-01 18:51:07 +02:00
|
|
|
[dependencies]
|
2022-10-06 19:59:54 +02:00
|
|
|
teloxide-core = { version = "0.8.0", default-features = false }
|
2022-10-06 19:52:49 +02:00
|
|
|
teloxide-macros = { version = "0.7.0", optional = true }
|
2019-10-11 14:01:58 +02:00
|
|
|
|
2021-02-22 03:14:33 +01:00
|
|
|
serde_json = "1.0"
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2019-10-11 14:01:58 +02:00
|
|
|
|
2022-07-19 12:30:18 +02:00
|
|
|
dptree = "0.3.0"
|
2021-11-13 11:35:56 +01:00
|
|
|
|
2022-07-19 16:16:08 +02:00
|
|
|
# These lines are used only for development.
|
2022-10-06 19:59:54 +02:00
|
|
|
# teloxide-core = { git = "https://github.com/teloxide/teloxide-core", rev = "00165e6", default-features = false }
|
2022-10-06 19:52:49 +02:00
|
|
|
# teloxide-macros = { git = "https://github.com/teloxide/teloxide-macros", rev = "e715105", optional = true }
|
2022-07-19 16:16:08 +02:00
|
|
|
# dptree = { git = "https://github.com/teloxide/dptree", rev = "df578e4" }
|
|
|
|
|
2021-07-05 20:28:03 +02:00
|
|
|
tokio = { version = "1.8", features = ["fs"] }
|
2022-07-19 12:30:18 +02:00
|
|
|
tokio-util = "0.7"
|
2022-04-05 14:42:52 +02:00
|
|
|
tokio-stream = "0.1.8"
|
2021-02-22 03:14:33 +01:00
|
|
|
|
2022-03-17 23:39:56 +01:00
|
|
|
url = "2.2.2"
|
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"
|
2021-12-11 12:11:25 +01:00
|
|
|
futures = "0.3.15"
|
2021-02-22 03:14:33 +01:00
|
|
|
pin-project = "1.0"
|
|
|
|
serde_with_macros = "1.4"
|
2022-03-24 12:25:42 +01:00
|
|
|
aquamarine = "0.1.11"
|
2020-02-03 12:14:59 +01:00
|
|
|
|
2022-07-19 12:30:18 +02:00
|
|
|
sqlx = { version = "0.6", optional = true, default-features = false, features = [
|
2020-11-24 16:26:16 +01:00
|
|
|
"runtime-tokio-native-tls",
|
2020-07-31 14:59:26 +02:00
|
|
|
"macros",
|
2020-10-19 01:15:46 +02:00
|
|
|
"sqlite",
|
2020-07-31 14:59:26 +02:00
|
|
|
] }
|
2022-07-19 12:30:18 +02:00
|
|
|
redis = { version = "0.21", 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 }
|
2022-07-19 12:30:18 +02:00
|
|
|
axum = { version = "0.5.13", optional = true }
|
2022-03-17 23:39:56 +01:00
|
|
|
tower = { version = "0.4.12", optional = true }
|
2022-07-19 12:30:18 +02:00
|
|
|
tower-http = { version = "0.3.4", features = ["trace"], optional = true }
|
2022-07-01 21:21:39 +02:00
|
|
|
rand = { version = "0.8.5", optional = true }
|
2020-03-12 22:38:35 +01:00
|
|
|
|
2020-02-14 09:41:03 +01:00
|
|
|
[dev-dependencies]
|
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"
|
2022-02-01 22:54:00 +01:00
|
|
|
serde = "1"
|
|
|
|
serde_json = "1"
|
2021-07-05 20:28:03 +02:00
|
|
|
tokio = { version = "1.8", features = ["fs", "rt-multi-thread", "macros"] }
|
2022-07-19 12:30:18 +02:00
|
|
|
reqwest = "0.11.11"
|
2022-02-01 22:54:00 +01:00
|
|
|
chrono = "0.4"
|
2022-03-24 12:25:42 +01:00
|
|
|
tokio-stream = "0.1"
|
2020-08-12 21:48:36 +02:00
|
|
|
|
2020-10-26 06:27:13 +01:00
|
|
|
[package.metadata.docs.rs]
|
2020-08-12 21:48:36 +02:00
|
|
|
all-features = true
|
2022-02-06 15:23:21 +01:00
|
|
|
# FIXME: Add back "-Znormalize-docs" when https://github.com/rust-lang/rust/issues/93703 is fixed
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2021-07-07 19:27:38 +02:00
|
|
|
rustc-args = ["--cfg", "dep_docsrs"]
|
2022-02-01 22:54:00 +01:00
|
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
2020-08-12 22:53:58 +02:00
|
|
|
|
|
|
|
[[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"]
|
2022-02-01 22:54:00 +01:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "dialogue"
|
2022-02-02 21:36:36 +01:00
|
|
|
required-features = ["macros"]
|
2022-02-01 22:54:00 +01:00
|
|
|
|
|
|
|
[[example]]
|
2022-04-26 21:12:36 +02:00
|
|
|
name = "command"
|
2022-02-01 22:54:00 +01:00
|
|
|
required-features = ["macros"]
|
|
|
|
|
|
|
|
[[example]]
|
2022-03-12 09:33:38 +01:00
|
|
|
name = "db_remember"
|
|
|
|
required-features = ["sqlite-storage", "redis-storage", "bincode-serializer", "macros"]
|
2022-02-01 22:54:00 +01:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "inline"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "buttons"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "admin"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
2022-04-27 04:07:00 +02:00
|
|
|
[[example]]
|
|
|
|
name = "dispatching_features"
|
|
|
|
required-features = ["macros"]
|
|
|
|
|
2022-03-25 14:21:23 +01:00
|
|
|
[[example]]
|
|
|
|
name = "ngrok_ping_pong"
|
|
|
|
required-features = ["webhooks-axum"]
|
2022-04-22 19:42:50 +02:00
|
|
|
|
2022-06-09 16:00:15 +02:00
|
|
|
[[example]]
|
|
|
|
name = "heroku_ping_pong"
|
|
|
|
required-features = ["webhooks-axum"]
|
|
|
|
|
2022-04-22 19:42:50 +02:00
|
|
|
[[example]]
|
|
|
|
name = "purchase"
|
|
|
|
required-features = ["macros"]
|