[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]
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 = []
glommio = ["dep:glommio", "futures-io", "pin-project", "fred-macros/enabled", "oneshot", "futures-lite"]
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"]
smol = []
enable-rustls = [
"rustls",
"tokio-rustls",
"rustls-native-certs",
"rustls/std",
"tokio-rustls/logging",
"tokio-rustls/tls12",
"tokio-rustls/aws_lc_rs",
]
enable-rustls-ring = [
"rustls",
"tokio-rustls",
"rustls-native-certs",
"rustls/std",
"tokio-rustls/logging",
"tokio-rustls/tls12",
"tokio-rustls/ring",
]
enable-native-tls = ["native-tls", "tokio-native-tls"]
vendored-openssl = ["enable-native-tls", "native-tls/vendored"]
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"]
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-tracing = ["partial-tracing"]
partial-tracing = ["tracing", "tracing-futures"]
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"
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 = { 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 = { 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 = { 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"]