Cargo Features

[dependencies]
redis-protocol = { version = "6.0.0", default-features = false, features = ["std", "alloc", "resp2", "resp3", "index-map", "bytes", "decode-logs", "codec", "convert", "libm", "hashbrown"] }
default = resp2, resp3, std

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

std default

Enables cookie-factory =0.3.2 and nom

Affects utils::digits_in_usize, utils::digits_in_i64

alloc

Enables alloc of nom

resp2 default

Affects redis-protocol::resp2

resp3 default

Affects redis-protocol::resp3

index-map = indexmap

Affects types::FrameMap, types::FrameSet, utils::new_set, utils::new_map

bytes codec? = bytes-utils

Enables bytes

Affects decode::decode_bytes, decode::decode_bytes_mut, encode::encode_bytes, encode::extend_encode, encode::extend_encode_borrowed, types::BytesFrame, utils::build_bytes_frame, utils::freeze_parse, decode::complete.decode_bytes, decode::complete.decode_bytes_mut, decode::streaming.decode_bytes, decode::streaming.decode_bytes_mut, encode::complete.encode_bytes, encode::complete.extend_encode, encode::complete.extend_encode_borrowed, encode::streaming.encode_bytes_aggregate_type_inner_value, encode::streaming.encode_bytes_aggregate_type_inner_kv_pair, types::BytesAttributes, types::BytesFrame, utils::bytes_array_or_push_encode_len

decode-logs
codec = bytes, tokio-util

Affects redis-protocol::codec

convert

Affects redis-protocol::convert, types::Resp2Frame.convert, types::Resp2Frame.is_single_element_vec, types::Resp2Frame.pop_or_take, types::Resp3Frame.convert, types::Resp3Frame.is_single_element_vec, types::Resp3Frame.pop_or_take

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-utils bytes?
indexmap index-map?
libm implicit feature

Enables libm

libm:

libm in pure Rust

Affects utils::digits_in_usize, utils::digits_in_i64

hashbrown implicit feature

Enables hashbrown ^0.14

hashbrown:

A Rust port of Google's SwissTable hash map

tokio-util codec?