teloxide/Cargo.toml

101 lines
2.6 KiB
TOML
Raw Normal View History

2020-08-12 18:04:50 +03:00
[package]
name = "teloxide-core"
description = "Core part of the `teloxide` library - telegram bot API client"
2022-06-21 16:25:51 +04:00
version = "0.6.3"
2020-08-12 18:04:50 +03:00
edition = "2018"
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-17 00:17:14 +03:00
categories = ["api-bindings", "asynchronous"]
exclude = [
".github/*",
"netlify.toml",
]
2020-08-12 18:04:50 +03:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
2020-08-12 19:39:40 +03:00
futures = "0.3.5"
tokio = { version = "1.12.0", features = ["fs"] }
tokio-util = { version = "0.6.0", features = ["codec"] }
2021-01-07 15:58:51 +03:00
pin-project = "1.0.3"
bytes = "1.0.0"
2022-04-24 01:26:08 +06:00
reqwest = { version = "0.11.10", features = ["json", "stream", "multipart"], default-features = false }
2021-05-04 15:55:03 +03:00
url = { version = "2", features = ["serde"] }
2021-03-13 17:46:16 +06:00
log = "0.4"
2020-08-12 19:39:40 +03:00
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
2021-03-16 15:36:46 +03:00
serde_with_macros = "1.4.1"
uuid = { version = "0.8.1", features = ["v4"] } # for attaching input files
2020-11-24 19:15:46 +03:00
2020-08-12 19:39:40 +03:00
derive_more = "0.99.9"
mime = "0.3.16"
thiserror = "1.0.20"
2021-01-07 15:58:51 +03:00
once_cell = "1.5.0"
takecell = "0.1"
take_mut = "0.2"
rc-box = "1.1.1"
never = "0.1.0"
2021-10-23 17:36:42 +02:00
chrono = { version = "0.4.19", default-features = false }
either = "1.6.1"
2021-12-29 20:36:08 +03:00
bitflags = { version = "1.2" }
2020-08-12 18:04:50 +03:00
2021-01-12 13:13:53 +03:00
vecrem = { version = "0.1", optional = true }
2020-09-30 19:30:04 +03:00
2021-07-12 16:58:51 +03:00
[dev-dependencies]
pretty_env_logger = "0.4"
2021-11-20 19:33:22 +03:00
tokio = { version = "1.8.0", features = ["fs", "macros"] }
2022-05-24 13:50:33 +04:00
cool_asserts = "2.0.3"
2021-07-12 16:58:51 +03:00
2020-08-12 18:04:50 +03:00
[features]
2021-01-21 23:45:07 +03:00
default = ["native-tls"]
2020-11-12 00:02:51 +03:00
rustls = ["reqwest/rustls-tls"]
native-tls = ["reqwest/native-tls"]
# 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 18:04:50 +03:00
nightly = []
# Throttling bot adaptor
throttle = ["vecrem", "tokio/macros"]
2021-07-10 17:41:20 +03:00
# Trace bot adaptor
2021-12-29 20:36:08 +03:00
trace_adaptor = []
2021-07-10 17:41:20 +03:00
2021-07-12 16:58:51 +03:00
# Erased bot adaptor
erased = []
# CacheMe bot adaptor
cache_me = []
# AutoSend bot adaptor
auto_send = []
# All features except nightly and tls-related
2021-07-12 16:58:51 +03:00
full = ["throttle", "trace_adaptor", "erased", "cache_me", "auto_send"]
2021-05-09 00:43:16 +03:00
[package.metadata.docs.rs]
features = ["full", "nightly", "tokio/macros", "tokio/rt-multi-thread"]
2021-01-07 14:58:48 +03:00
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
2021-01-13 16:12:04 +03:00
# https://github.com/rust-lang/rust/issues/88791
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
2021-01-13 16:12:04 +03:00
[[example]]
name = "self_info"
required-features = ["tokio/macros", "tokio/rt-multi-thread", "auto_send"]
2021-07-12 16:58:51 +03:00
[[example]]
name = "erased"
required-features = ["tokio/macros", "tokio/rt-multi-thread", "auto_send", "erased"]