fred 9.4.0

An async client for Redis and Valkey.
Documentation
[package]
authors = ["Alec Embke <aembke@gmail.com>"]
categories = ["asynchronous", "database", "web-programming"]
description = "An async client for Redis and Valkey."
edition = "2021"
exclude = ["tests", ".circleci", "bin", ".github", "docs"]
homepage = "https://github.com/aembke/fred.rs"
keywords = ["redis", "valkey", "cluster", "sentinel"]
license = "MIT"
name = "fred"
readme = "README.md"
repository = "https://github.com/aembke/fred.rs"
rust-version = "1.75"
version = "9.4.0"

[package.metadata.docs.rs]
# do not show the glommio version of the docs
features = [
    "i-all",
    "i-redis-stack",
    "transactions",
    "blocking-encoding",
    "dns",
    "metrics",
    "mocks",
    "monitor",
    "replicas",
    "sentinel-auth",
    "sentinel-client",
    "serde-json",
    "subscriber-client",
    "unix-sockets",
    "enable-rustls",
    "enable-native-tls",
    "full-tracing",
    "credential-provider",
    "specialize-into-bytes"
]
rustdoc-args = ["--cfg", "docsrs"]

[lib]
doc = true
name = "fred"
test = true

[features]
default = ["transactions", "i-std"]

specialize-into-bytes = []
blocking-encoding = ["tokio/rt-multi-thread"]
custom-reconnect-errors = []
default-nil-types = []
dns = ["hickory-resolver"]
metrics = []
mocks = []
monitor = ["nom"]
replicas = []
sentinel-auth = []
sentinel-client = []
serde-json = ["serde_json"]
subscriber-client = ["i-pubsub"]
transactions = []
trust-dns-resolver = ["dep:trust-dns-resolver"]
unix-sockets = []
credential-provider = []

# Enable experimental support for the Glommio runtime.
glommio = ["dep:glommio", "futures-io", "pin-project", "fred-macros/enabled", "oneshot", "futures-lite"]
# Enable experimental support for the Monoio runtime.
monoio = ["dep:monoio", "monoio-codec", "fred-macros/enabled", "oneshot", "futures-lite", "local-sync"]
monoio-native-tls = ["dep:monoio-native-tls"]
monoio-rustls = ["dep:monoio-rustls"]
# [WIP] Enable experimental support for the Smol runtime.
smol = []

# Enables rustls with the rustls/aws_lc_rs crypto backend
enable-rustls = [
    "rustls",
    "tokio-rustls",
    "rustls-native-certs",
    "rustls/std",
    "tokio-rustls/logging",
    "tokio-rustls/tls12",
    "tokio-rustls/aws_lc_rs",
]

# Enables rustls with the rustls/ring backend
enable-rustls-ring = [
    "rustls",
    "tokio-rustls",
    "rustls-native-certs",
    "rustls/std",
    "tokio-rustls/logging",
    "tokio-rustls/tls12",
    "tokio-rustls/ring",
]

# Enables native tls
enable-native-tls = ["native-tls", "tokio-native-tls"]

# Enables native tls with vendored openssl
vendored-openssl = ["enable-native-tls", "native-tls/vendored"]

# Standard Redis Interfaces
i-acl = []
i-all = [
    "i-acl",
    "i-client",
    "i-cluster",
    "i-config",
    "i-geo",
    "i-hashes",
    "i-hyperloglog",
    "i-keys",
    "i-lists",
    "i-scripts",
    "i-memory",
    "i-pubsub",
    "i-server",
    "i-streams",
    "i-tracking",
    "i-sorted-sets",
    "i-slowlog",
    "i-sets",
]
i-client = []
i-cluster = []
i-config = []
i-geo = ["i-sorted-sets"]
i-hashes = []
i-hyperloglog = []
i-keys = []
i-lists = []
i-memory = []
i-pubsub = []
i-scripts = []
i-server = []
i-sets = []
i-slowlog = []
i-sorted-sets = []
i-std = [
    "i-hashes",
    "i-keys",
    "i-lists",
    "i-sets",
    "i-streams",
    "i-pubsub",
    "i-sorted-sets",
    "i-server",
]
i-streams = []
i-tracking = ["i-client", "i-pubsub"]

# Redis Stack Interfaces
i-redis-json = ["serde-json"]
i-redis-stack = ["i-redis-json", "i-time-series", "i-redisearch"]
i-redisearch = ["i-sorted-sets", "i-geo", "i-hashes"]
i-time-series = []

# Full and partial tracing
full-tracing = ["partial-tracing"]
partial-tracing = ["tracing", "tracing-futures"]

# Debugging Features
debug-ids = []
network-logs = []

[dependencies]
arc-swap = "1.7"
async-trait = { version = "0.1" }
bytes = "1.6"
bytes-utils = "0.1.3"
crossbeam-queue = "0.3"
float-cmp = "0.9"
futures = { version = "0.3", features = ["std"] }
log = "0.4"
native-tls = { version = "0.2", optional = true }
nom = { version = "7.1", optional = true }
parking_lot = "0.12"
rand = "0.8"
redis-protocol = { version = "5.0.1", features = ["resp2", "resp3", "bytes"] }
rustls = { version = "0.23", optional = true, default-features = false }
rustls-native-certs = { version = "0.7", optional = true }
semver = "1.0"
serde_json = { version = "1", optional = true }
sha-1 = { version = "0.10", optional = true }
socket2 = "0.5"
tracing = { version = "0.1", optional = true }
tracing-futures = { version = "0.2", optional = true }
url = "2.4"
urlencoding = "2.1"
# DNS Features
trust-dns-resolver = { version = "0.23", optional = true, features = ["tokio"] }
hickory-resolver = { version = "0.24.1", optional = true, features = ["tokio"] }
fred-macros = "0.1"
# Tokio  Dependencies
tokio = { version = "1.34", features = [
    "net",
    "sync",
    "rt",
    "rt-multi-thread",
    "macros",
] }
tokio-native-tls = { version = "0.3", optional = true }
tokio-rustls = { version = "0.26", optional = true, default-features = false }
tokio-stream = "0.1"
tokio-util = { version = "0.7", features = ["codec"] }
# Glommio Dependencies
glommio = { version = "0.9.0", optional = true }
futures-io = { version = "0.3", optional = true }
pin-project = { version = "1.1.5", optional = true }
oneshot = { version = "0.1.8", optional = true, features = ["async"] }
futures-lite = { version = "2.3", optional = true }
# Monoio Dependencies
monoio = { version = "0.2.4", optional = true, features = ["bytes"] }
monoio-codec = { version = "0.3.4", optional = true }
monoio-native-tls = { version = "0.4.0", optional = true }
monoio-rustls = { version = "0.4.0", optional = true }
local-sync = { version = "0.1.1", optional = true }

[dev-dependencies]
axum = { version = "0.7", features = ["macros"] }
base64 = "0.22.0"
maplit = "1.0"
pretty_env_logger = "0.5"
serde = { version = "1.0", features = ["derive"] }
subprocess = "0.2"
tokio-stream = { version = "0.1", features = ["sync"] }

[[example]]
name = "glommio"
required-features = ["glommio", "i-std"]

[[example]]
name = "misc"
required-features = ["i-all"]

[[example]]
name = "scan"
required-features = ["i-all"]

[[example]]
name = "monitor"
required-features = ["monitor"]

[[example]]
name = "pubsub"
required-features = ["subscriber-client"]

[[example]]
name = "axum"
required-features = ["subscriber-client"]

[[example]]
name = "serde_json"
required-features = ["serde-json"]

[[example]]
name = "redis_json"
required-features = ["i-redis-json"]

[[example]]
name = "replicas"
required-features = ["i-std", "i-cluster", "replicas"]

[[example]]
name = "dns"
required-features = ["dns"]

[[example]]
name = "client_tracking"
required-features = ["i-tracking", "i-std"]

[[example]]
name = "lua"
required-features = ["sha-1", "i-scripts"]

[[example]]
name = "events"
required-features = ["tokio-stream/sync", "i-std"]

[[example]]
name = "transactions"
required-features = ["transactions", "i-std"]