Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
redis = { version = "1.0.0-alpha.2", default-features = false, features = ["acl", "geospatial", "json", "vector-sets", "cluster", "script", "tls-native-tls", "tls-rustls", "tls-rustls-insecure", "tls-rustls-webpki-roots", "smol-comp", "smol-native-tls-comp", "smol-rustls-comp", "tokio-comp", "tokio-native-tls-comp", "tokio-rustls-comp", "connection-manager", "streams", "cluster-async", "sentinel", "num-bigint", "cache-aio", "r2d2", "bb8", "aio", "rust_decimal", "bigdecimal", "ahash", "uuid", "hashbrown"] }
default = acl, geospatial, num-bigint, script, streams

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

acl default

Affects commands::acl

geospatial default

Affects commands::geo

json

Enables serde_json and derive of serde

Needed for modules Support

vector-sets

Enables serde_json, derive of serde

Affects commands::vector_sets

cluster cluster-async?

Enables crc16 and rand

crc16:

Only needed for cluster

script default

Enables sha1_smol

We need this for script support

tls-native-tls smol-native-tls-comp? tokio-native-tls-comp?

Enables native-tls

Only needed for native tls

tls-rustls smol-rustls-comp? tls-rustls-insecure? tls-rustls-webpki-roots? tokio-rustls-comp?

Enables rustls-native-certs and std of rustls

Only needed for rustls

tls-rustls-insecure = tls-rustls
tls-rustls-webpki-roots = tls-rustls

Enables webpki-roots

smol-comp smol-native-tls-comp? smol-rustls-comp? = aio

Enables async-io, smol, and smol-timeout

smol:

only needed for smol support

Affects aio::smol, runtime::prefer_smol, runtime::prefer_tokio

smol-native-tls-comp = smol-comp, tls-native-tls

Enables async-native-tls

smol-rustls-comp = smol-comp, tls-rustls

Enables futures-rustls

tokio-comp tokio-native-tls-comp? tokio-rustls-comp? = aio

Enables tokio

Affects aio::tokio, runtime::prefer_smol, runtime::prefer_tokio

tokio-native-tls-comp = tls-native-tls, tokio-comp

Enables tokio-native-tls

tokio-rustls-comp = tls-rustls, tokio-comp

Enables tokio-rustls

connection-manager = aio

Enables arc-swap, backon, and futures-channel

arc-swap:

Only needed for the connection manager

streams default

Affects commands::streams, streams::XDelExStatusCode, streams::XAckDelStatusCode

cluster-async = aio, cluster

Enables futures-sink and log

futures-sink:

Only needed for cluster-async

Affects cluster_handling::async_connection

sentinel

Enables rand

Affects redis::sentinel

num-bigint default

Enables num-bigint

cache-aio = aio

Enables lru

Affects cmd::CommandCacheConfig, redis::caching

r2d2

Enables r2d2

Only needed for the r2d2 feature

Affects sentinel::LockedSentinelClient

bb8

Enables bb8

Only needed for the bb8 feature

aio cache-aio? cluster-async? connection-manager? smol-comp? tokio-comp? = bytes

Instead of specifying "aio", use either "tokio-comp" or "smol-comp".

Enables cfg-if, futures-util, pin-project-lite, and tokio, tokio of combine, codec of tokio-util

Affects client::AsyncConnectionConfig, cmd::AsyncIter, dns::AsyncDNSResolver, redis::aio, types::RedisFuture

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.

bytes aio?

Enables bytes

Only needed for AIO

Affects types::RedisWrite.bufmut_for_next_arg

rust_decimal implicit feature

Enables rust_decimal

Only needed for bignum Support

bigdecimal implicit feature

Enables bigdecimal

bigdecimal:

Arbitrary precision decimal numbers

ahash implicit feature

Enables ahash

Optional aHash support

uuid implicit feature

Enables uuid

Optional uuid support

hashbrown implicit feature

Enables hashbrown

Optional hashbrown support