Cargo Features

[dependencies]
teloxide-core = { version = "0.9.1", default-features = false, features = ["rustls", "native-tls", "nightly", "throttle", "trace_adaptor", "erased", "cache_me", "auto_send", "full"] }
default = native-tls

NB: When adding features here, don't forget to update teloxide's Cargo.toml

rustls

Enables rustls-tls of reqwest ^0.11.10

native-tls default

Enables native-tls of reqwest ^0.11.10

reqwest:

Enables native-tls specific functionality not available by default.

nightly

Features which require nightly compiler.

Currently the only used compiler feature is feature(type_alias_impl_trait) which allow implementing Futures without boxing.

throttle full? = vecrem

Throttling bot adaptor

Enables macros of tokio

Affects adaptors::throttle, requester_ext::RequesterExt.throttle

trace_adaptor full?

Trace bot adaptor

Affects adaptors::trace, requester_ext::RequesterExt.trace

erased full?

Erased bot adaptor

Affects adaptors::erased, request::Request.erase, requester_ext::RequesterExt.erase

cache_me full?

CacheMe bot adaptor

Affects adaptors::cache_me, requester_ext::RequesterExt.cache_me

auto_send full?

AutoSend bot adaptor

Affects adaptors::auto_send, requester_ext::RequesterExt.auto_send

full = auto_send, cache_me, erased, throttle, trace_adaptor

All features except nightly and tls-related

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

vecrem throttle?