[[bench]]
harness = false
name = "bench_basic"
path = "benches/bench_basic.rs"
required-features = ["tokio-comp"]
[[bench]]
harness = false
name = "bench_cluster"
path = "benches/bench_cluster.rs"
required-features = ["cluster"]
[[bench]]
harness = false
name = "bench_cluster_async"
path = "benches/bench_cluster_async.rs"
required-features = ["cluster-async", "tokio-comp"]
[dependencies.ahash]
optional = true
version = "0.8.11"
[dependencies.arc-swap]
version = "1.7.1"
[dependencies.async-native-tls]
optional = true
version = "0.5"
[dependencies.async-std]
optional = true
version = "1.8.0"
[dependencies.async-trait]
optional = true
version = "0.1.80"
[dependencies.bigdecimal]
optional = true
version = "0.4.5"
[dependencies.bytes]
optional = true
version = "1"
[dependencies.combine]
default-features = false
features = ["std"]
version = "4.6"
[dependencies.crc16]
optional = true
version = "0.4"
[dependencies.futures]
optional = true
version = "0.3.3"
[dependencies.futures-rustls]
default-features = false
optional = true
version = "0.26"
[dependencies.futures-util]
default-features = false
optional = true
version = "0.3.15"
[dependencies.itoa]
version = "1.0"
[dependencies.log]
optional = true
version = "0.4"
[dependencies.native-tls]
optional = true
version = "0.2"
[dependencies.num-bigint]
version = "0.4.6"
[dependencies.percent-encoding]
version = "2.1"
[dependencies.pin-project-lite]
optional = true
version = "0.2"
[dependencies.r2d2]
optional = true
version = "0.8.8"
[dependencies.rand]
optional = true
version = "0.8"
[dependencies.rust_decimal]
optional = true
version = "1.35.0"
[dependencies.rustls]
default-features = false
optional = true
version = "0.23"
[dependencies.rustls-native-certs]
optional = true
version = "0.7"
[dependencies.rustls-pemfile]
optional = true
version = "2"
[dependencies.rustls-pki-types]
optional = true
version = "1"
[dependencies.ryu]
version = "1.0"
[dependencies.serde]
optional = true
version = "1.0.204"
[dependencies.serde_json]
optional = true
version = "1.0.119"
[dependencies.sha1_smol]
optional = true
version = "1.0"
[dependencies.socket2]
default-features = false
optional = true
version = "0.5"
[dependencies.tokio]
features = ["rt", "net", "time", "sync"]
optional = true
version = "1"
[dependencies.tokio-native-tls]
optional = true
version = "0.3"
[dependencies.tokio-retry]
optional = true
version = "0.3.0"
[dependencies.tokio-rustls]
default-features = false
optional = true
version = "0.26"
[dependencies.tokio-util]
optional = true
version = "0.7"
[dependencies.url]
version = "2.5"
[dependencies.uuid]
optional = true
version = "1.10.0"
[dependencies.webpki-roots]
optional = true
version = "0.26"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.assert_approx_eq]
version = "1.0"
[dev-dependencies.criterion]
version = "0.4"
[dev-dependencies.fnv]
version = "1.0.5"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.futures-time]
version = "3"
[dev-dependencies.once_cell]
version = "1"
[dev-dependencies.partial-io]
features = ["tokio", "quickcheck1"]
version = "0.5"
[dev-dependencies.quickcheck]
version = "1.0.3"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.socket2]
version = "0.5"
[dev-dependencies.tempfile]
version = "=3.10.1"
[dev-dependencies.tokio]
features = ["rt", "macros", "rt-multi-thread", "time"]
version = "1"
[[example]]
name = "async-await"
path = "examples/async-await.rs"
required-features = ["aio"]
[[example]]
name = "async-connection-loss"
path = "examples/async-connection-loss.rs"
required-features = ["connection-manager"]
[[example]]
name = "async-multiplexed"
path = "examples/async-multiplexed.rs"
required-features = ["tokio-comp"]
[[example]]
name = "async-pub-sub"
path = "examples/async-pub-sub.rs"
required-features = ["aio"]
[[example]]
name = "async-scan"
path = "examples/async-scan.rs"
required-features = ["aio"]
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "geospatial"
path = "examples/geospatial.rs"
[[example]]
name = "streams"
path = "examples/streams.rs"
required-features = ["streams"]
[features]
acl = []
aio = ["bytes", "pin-project-lite", "futures-util", "futures-util/alloc", "futures-util/sink", "tokio/io-util", "tokio-util", "tokio-util/codec", "combine/tokio", "async-trait"]
async-std-comp = ["aio", "async-std"]
async-std-native-tls-comp = ["async-std-comp", "async-native-tls", "tls-native-tls"]
async-std-rustls-comp = ["async-std-comp", "futures-rustls", "tls-rustls"]
async-std-tls-comp = ["async-std-native-tls-comp"]
bigdecimal = ["dep:bigdecimal"]
cluster = ["crc16", "rand"]
cluster-async = ["cluster", "futures", "futures-util", "log"]
connection-manager = ["futures", "aio", "tokio-retry"]
default = ["acl", "streams", "geospatial", "script", "keep-alive"]
disable-client-setinfo = []
geospatial = []
json = ["serde", "serde/derive", "serde_json"]
keep-alive = ["socket2"]
num-bigint = []
rust_decimal = ["dep:rust_decimal"]
script = ["sha1_smol"]
sentinel = ["rand"]
streams = []
tcp_nodelay = []
tls = ["tls-native-tls"]
tls-native-tls = ["native-tls"]
tls-rustls = ["rustls", "rustls/ring", "rustls-native-certs", "rustls-pemfile", "rustls-pki-types"]
tls-rustls-insecure = ["tls-rustls"]
tls-rustls-webpki-roots = ["tls-rustls", "webpki-roots"]
tokio-comp = ["aio", "tokio/net"]
tokio-native-tls-comp = ["tokio-comp", "tls-native-tls", "tokio-native-tls"]
tokio-rustls-comp = ["tokio-comp", "tls-rustls", "tokio-rustls"]
uuid = ["dep:uuid"]
[lib]
bench = false
name = "redis"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
description = "Redis driver for Rust."
documentation = "https://docs.rs/redis"
edition = "2021"
homepage = "https://github.com/redis-rs/redis-rs"
keywords = ["redis", "database"]
license = "BSD-3-Clause"
name = "redis"
readme = "README.md"
repository = "https://github.com/redis-rs/redis-rs"
rust-version = "1.65"
version = "0.26.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "parser"
path = "tests/parser.rs"
required-features = ["aio"]
[[test]]
name = "test_acl"
path = "tests/test_acl.rs"
[[test]]
name = "test_async"
path = "tests/test_async.rs"
required-features = ["tokio-comp"]
[[test]]
name = "test_async_async_std"
path = "tests/test_async_async_std.rs"
required-features = ["async-std-comp"]
[[test]]
name = "test_basic"
path = "tests/test_basic.rs"
[[test]]
name = "test_bignum"
path = "tests/test_bignum.rs"
[[test]]
name = "test_cluster"
path = "tests/test_cluster.rs"
[[test]]
name = "test_cluster_async"
path = "tests/test_cluster_async.rs"
required-features = ["cluster-async"]
[[test]]
name = "test_geospatial"
path = "tests/test_geospatial.rs"
[[test]]
name = "test_module_json"
path = "tests/test_module_json.rs"
required-features = ["json", "serde/derive"]
[[test]]
name = "test_script"
path = "tests/test_script.rs"
required-features = ["script"]
[[test]]
name = "test_sentinel"
path = "tests/test_sentinel.rs"
[[test]]
name = "test_streams"
path = "tests/test_streams.rs"
[[test]]
name = "test_types"
path = "tests/test_types.rs"