2020-08-12 17:04:50 +02:00
|
|
|
[package]
|
|
|
|
name = "teloxide-core"
|
2021-02-16 22:06:37 +01:00
|
|
|
description = "Core part of the `teloxide` library - telegram bot API client"
|
2021-07-07 19:13:02 +02:00
|
|
|
version = "0.3.1"
|
2020-08-12 17:04:50 +02:00
|
|
|
edition = "2018"
|
|
|
|
authors = [
|
|
|
|
"Temirkhan Myrzamadi <hirrolot@gmail.com>",
|
|
|
|
"Waffle Lapkin <waffle.lapkin@gmail.com>",
|
|
|
|
"p0lunin <dmytro.polunin@gmail.com>",
|
|
|
|
"Mishko torop'izhko",
|
|
|
|
"Mr-Andersen",
|
|
|
|
"Sergey Levitin <selevit@gmail.com>",
|
|
|
|
"Rustem B. <bakirov.com@yandex.ru>",
|
|
|
|
"Alexey Fedechkin <aleksey-fedechkin@rambler.ru>"
|
|
|
|
]
|
|
|
|
|
2021-02-16 22:06:37 +01:00
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/teloxide/teloxide-core/"
|
|
|
|
homepage = "https://github.com/teloxide/teloxide-core/"
|
|
|
|
documentation = "https://docs.rs/teloxide-core/"
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
keywords = ["telegram", "bot", "tba"]
|
2021-02-16 22:17:14 +01:00
|
|
|
categories = ["api-bindings", "asynchronous"]
|
2021-02-16 22:06:37 +01:00
|
|
|
|
|
|
|
exclude = [
|
|
|
|
".github/*",
|
|
|
|
"netlify.toml",
|
|
|
|
]
|
|
|
|
|
2020-08-12 17:04:50 +02:00
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2020-08-12 18:39:40 +02:00
|
|
|
futures = "0.3.5"
|
2021-07-04 09:37:59 +02:00
|
|
|
tokio = { version = "1.8.0", features = ["fs"] }
|
2021-01-07 13:58:51 +01:00
|
|
|
tokio-util = "0.6.0"
|
|
|
|
pin-project = "1.0.3"
|
|
|
|
bytes = "1.0.0"
|
2021-03-26 22:47:03 +01:00
|
|
|
reqwest = { version = "0.11.0", features = ["json", "stream", "multipart"], default-features = false }
|
2021-05-04 14:55:03 +02:00
|
|
|
url = { version = "2", features = ["serde"] }
|
2021-03-13 12:46:16 +01:00
|
|
|
log = "0.4"
|
2020-08-12 18:39:40 +02:00
|
|
|
|
|
|
|
serde = { version = "1.0.114", features = ["derive"] }
|
|
|
|
serde_json = "1.0.55"
|
2021-03-16 13:36:46 +01:00
|
|
|
serde_with_macros = "1.4.1"
|
2020-08-15 23:07:19 +02:00
|
|
|
uuid = { version = "0.8.1", features = ["v4"] } # for attaching input files
|
2020-11-24 17:15:46 +01:00
|
|
|
|
2020-08-12 18:39:40 +02:00
|
|
|
derive_more = "0.99.9"
|
|
|
|
mime = "0.3.16"
|
|
|
|
thiserror = "1.0.20"
|
2021-01-07 13:58:51 +01:00
|
|
|
once_cell = "1.5.0"
|
2020-10-02 17:37:15 +02:00
|
|
|
never = "0.1.0"
|
2021-07-03 22:35:13 +02:00
|
|
|
chrono = "0.4.19"
|
2021-07-08 12:04:40 +02:00
|
|
|
either = "1.6.1"
|
2020-08-12 17:04:50 +02:00
|
|
|
|
2021-01-12 11:13:53 +01:00
|
|
|
vecrem = { version = "0.1", optional = true }
|
2020-09-30 18:30:04 +02:00
|
|
|
|
2020-08-12 17:04:50 +02:00
|
|
|
[features]
|
2021-01-21 21:45:07 +01:00
|
|
|
default = ["native-tls"]
|
2020-10-20 14:33:22 +02:00
|
|
|
|
2020-11-11 22:02:51 +01:00
|
|
|
rustls = ["reqwest/rustls-tls"]
|
2020-11-11 18:16:08 +01:00
|
|
|
native-tls = ["reqwest/native-tls"]
|
|
|
|
|
2020-10-20 14:33:22 +02:00
|
|
|
# Features which require nightly compiler.
|
|
|
|
#
|
|
|
|
# Currently the only used compiler feature is feature(type_alias_impl_trait)
|
|
|
|
# which allow implementing `Future`s without boxing.
|
2020-08-12 17:04:50 +02:00
|
|
|
nightly = []
|
|
|
|
|
2020-10-20 14:33:22 +02:00
|
|
|
# Throttling bot adaptor
|
2021-01-12 11:13:53 +01:00
|
|
|
throttle = ["vecrem"]
|
2020-10-20 14:33:22 +02:00
|
|
|
|
|
|
|
# CacheMe bot adaptor
|
|
|
|
cache_me = []
|
|
|
|
|
|
|
|
# AutoSend bot adaptor
|
|
|
|
auto_send = []
|
|
|
|
|
2021-07-08 12:50:17 +02:00
|
|
|
full = ["throttle", "cache_me", "auto_send"]
|
2020-10-20 14:33:22 +02:00
|
|
|
|
2021-05-08 23:43:16 +02:00
|
|
|
[package.metadata.docs.rs]
|
2020-08-12 17:04:50 +02:00
|
|
|
all-features = true
|
2021-01-07 12:58:48 +01:00
|
|
|
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
|
2021-01-13 14:12:04 +01:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "self_info"
|
|
|
|
required-features = ["tokio/macros", "tokio/rt-multi-thread", "auto_send"]
|