Cargo Features

[dependencies]
teloxide-core = { version = "0.10.1", default-features = false, features = ["rustls", "rustls-native-roots", "native-tls", "nightly", "throttle", "trace_adaptor", "erased", "cache_me", "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

rustls-native-roots

Enables rustls-tls-native-roots 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

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

full = 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?