Cargo Features

[dependencies]
trezm-redis = { version = "0.15.2-alpha.0", default-features = false, features = ["aio", "tokio-rt-core", "geospatial", "cluster", "script", "async-std-comp", "tokio-comp", "connection-manager", "r2d2"] }
default = async-std-comp, geospatial, script, tokio-comp

These default features are set whenever trezm-redis is added without default-features = false somewhere in the dependency tree.

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.2

Affects trezm-redis::aio, types::RedisFuture

tokio-rt-core connection-manager? = tokio-comp

Enables rt-core of tokio ^0.2.10

geospatial default

Affects trezm-redis::geo

cluster = crc16, rand

Affects trezm-redis::cluster

script default = sha1
async-std-comp default = aio, async-std

Affects aio::connect_async_std, trezm-redis::aio_async_std

tokio-comp default tokio-rt-core? = aio, tokio

Affects aio::connect_tokio

connection-manager = arc-swap, futures, tokio-rt-core

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.2

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