Cargo Features
[dependencies]
teloxide = { version = "0.13.0", default-features = false, features = ["webhooks", "webhooks-axum", "sqlite-storage-nativetls", "sqlite-storage-rustls", "postgres-storage-nativetls", "postgres-storage-rustls", "redis-storage", "cbor-serializer", "bincode-serializer", "macros", "ctrlc_handler", "native-tls", "rustls", "rustls-native-roots", "throttle", "cache-me", "trace-adaptor", "erased", "nightly", "full"] }
- default = ctrlc_handler, native-tls
-
These default features are set whenever
teloxide
is added without
somewhere in the dependency tree.default-features = false Enables teloxide-core
- webhooks full? webhooks-axum? = rand
-
Affects
update_listeners::webhooks
… - webhooks-axum full? = axum, tower, tower-http, webhooks
- sqlite-storage-nativetls full? = native-tls, sqlx
-
Enables runtime-tokio-native-tls of sqlx ^0.7.3
- sqlite-storage-rustls = rustls, sqlx
-
Enables runtime-tokio-rustls of sqlx ^0.7.3
- postgres-storage-nativetls full? = native-tls, sqlx
-
Enables runtime-tokio-native-tls of sqlx ^0.7.3
- postgres-storage-rustls = rustls, sqlx
-
Enables runtime-tokio-rustls of sqlx ^0.7.3
- redis-storage full? = deadpool-redis
- cbor-serializer full? = serde_cbor
-
Affects
serializer::Cbor
… - bincode-serializer full? = bincode
-
Affects
serializer::Bincode
… - macros full? = teloxide-macros
- ctrlc_handler default full?
-
Affects
teloxide::repls
,commands_repl::CommandReplExt
,repl::repl
,repl::repl_with_listener
… - native-tls default full? postgres-storage-nativetls? sqlite-storage-nativetls?
-
Enables native-tls of teloxide-core
- rustls full? postgres-storage-rustls? sqlite-storage-rustls?
-
Enables rustls of teloxide-core
- rustls-native-roots
-
Enables rustls-native-roots of teloxide-core
- throttle full?
-
Enables throttle of teloxide-core
teloxide-core:
Throttling bot adaptor
- cache-me full?
-
FIXME: why teloxide and core use - _ differently?
Enables cache_me of teloxide-core
- trace-adaptor full?
-
Enables trace_adaptor of teloxide-core
teloxide-core:
Trace bot adaptor
- erased full?
-
Enables erased of teloxide-core
teloxide-core:
Erased bot adaptor
- nightly
-
currently used for
README.md
tests, building docs fordocsrs
to addThis is supported on feature="..." only.
, and for teloxide-core.Enables nightly of teloxide-core
- full = bincode-serializer, cache-me, cbor-serializer, ctrlc_handler, erased, macros, native-tls, postgres-storage-nativetls, redis-storage, rustls, sqlite-storage-nativetls, throttle, trace-adaptor, webhooks, webhooks-axum
-
Enables full of teloxide-core
teloxide-core:
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.
- teloxide-macros macros?
- sqlx postgres-storage-nativetls? postgres-storage-rustls? sqlite-storage-nativetls? sqlite-storage-rustls?
-
Enables sqlx ^0.7.3
- deadpool-redis redis-storage?
-
Enables deadpool-redis ^0.14
- serde_cbor cbor-serializer?
- bincode bincode-serializer?
- axum webhooks-axum?
- tower webhooks-axum?
-
Enables tower ^0.4.13
- tower-http webhooks-axum?
-
Enables tower-http ^0.5.2
- rand webhooks?