Cargo Features
[dependencies]
redis-sk = { version = "0.17.1", default-features = false, features = ["acl", "aio", "tokio-rt-core", "geospatial", "cluster", "script", "tls", "async-std-comp", "async-std-tls-comp", "tokio-comp", "tokio-tls-comp", "connection-manager", "streams", "r2d2"] }
- default = acl, async-std-comp, geospatial, script, streams, tokio-comp
-
These default features are set whenever
redis-sk
is added without
somewhere in the dependency tree.default-features = false - acl default
-
Affects
redis-sk::acl
… - aio async-std-comp tokio-comp = bytes, futures-util, pin-project-lite, tokio-util
-
Enables tokio-02 of combine, sink of futures-util, io-util, stream, sync, tcp and uds of tokio ^0.2.10, codec of tokio-util ^0.3.1
Affects
cmd::AsyncIter
,redis-sk::aio
,types::RedisFuture
… - tokio-rt-core connection-manager? = tokio-comp
-
Enables rt-core of tokio ^0.2.10
- geospatial default
-
Affects
redis-sk::geo
… - cluster = crc16, rand
-
Affects
redis-sk::cluster
… - script default = sha1
- tls async-std-tls-comp? tokio-tls-comp? = native-tls
-
Affects
aio_async_std::TlsStreamAsyncStdWrapped
… - async-std-comp default async-std-tls-comp? = aio, async-std
-
Affects
aio::connect_async_std
,redis-sk::aio_async_std
… - async-std-tls-comp = async-native-tls, async-std-comp, tls
- tokio-comp default tokio-rt-core? = aio, tokio
-
Affects
aio::connect_tokio
… - tokio-tls-comp = tls, tokio-tls
- connection-manager = arc-swap, futures, tokio-rt-core
- streams default
-
Affects
redis-sk::streams
…
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.
- sha1 script
-
Enables sha1 >=0.2, <0.7
We need this for script support
- bytes aio?
-
Enables bytes ^0.5
Only needed for AIO
- futures-util aio?
- pin-project-lite aio?
-
Enables pin-project-lite ^0.1
- tokio-util aio?
-
Enables tokio-util ^0.3.1
- tokio aio? tokio-comp tokio-rt-core?
-
Enables tokio ^0.2.10
- arc-swap connection-manager?
-
Enables arc-swap ^0.4.4
Only needed for the connection manager
- futures connection-manager?
- r2d2 implicit feature
-
Enables r2d2
Only needed for the r2d2 feature
- crc16 cluster?
-
Enables crc16
Only needed for cluster
- rand cluster?
-
Enables rand ^0.7.0
- async-std async-std-comp
-
Enables async-std
Only needed for async_std support
- native-tls tls?
-
Enables native-tls
Only needed for TLS
- tokio-tls tokio-tls-comp?
- async-native-tls async-std-tls-comp?
-
Enables async-native-tls ^0.3