[package]
name = "redis_wasi"
version = "0.22.3"
keywords = ["redis", "database"]
description = "Redis driver for Rust."
homepage = "https://github.com/redis-rs/redis-rs"
repository = "https://github.com/redis-rs/redis-rs"
documentation = "https://docs.rs/redis"
license = "BSD-3-Clause"
edition = "2021"
rust-version = "1.59"
readme = "../README.md"
[lib]
name = "redis"
path = "src/lib.rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
ryu = "1.0"
itoa = "1.0"
percent-encoding = "2.1"
url = "2.1"
sha1_smol = { version = "1.0", optional = true }
combine_wasi = { version = "4.6", default-features = false, features = ["std"] }
bytes = { version = "1", optional = true }
futures-util = { version = "0.3.15", default-features = false, optional = true }
pin-project-lite = { version = "0.2", optional = true }
tokio-util_wasi = { version = "0.7", optional = true }
tokio_wasi = { version = "1", features = ["rt", "net"], optional = true }
arc-swap = { version = "1.1.0", optional = true }
futures = { version = "0.3.3", optional = true }
r2d2 = { version = "0.8.8", optional = true }
crc16 = { version = "0.4", optional = true }
rand = { version = "0.8", optional = true }
async-std = { version = "1.8.0", optional = true}
async-trait = { version = "0.1.24", optional = true }
native-tls = { version = "0.2", optional = true }
tokio-native-tls = { version = "0.3", optional = true }
async-native-tls = { version = "0.4", optional = true }
serde = { version = "1.0.82", optional = true }
serde_json = { version = "1.0.82", optional = true }
ahash = { version = "0.7.6", optional = true }
wasmedge_wasi_socket = "0.4"
[features]
default = ["acl", "streams", "geospatial", "script"]
acl = []
aio = ["bytes", "pin-project-lite", "futures-util", "futures-util/alloc", "futures-util/sink", "tokio_wasi/io-util", "tokio-util_wasi", "tokio-util_wasi/codec", "tokio_wasi/sync", "combine_wasi/tokio_wasi", "async-trait"]
geospatial = []
json = ["serde", "serde_json"]
cluster = ["crc16", "rand"]
script = ["sha1_smol"]
tls = ["native-tls"]
async-std-comp = ["aio", "async-std"]
async-std-tls-comp = ["async-std-comp", "async-native-tls", "tls"]
tokio-comp = ["aio", "tokio_wasi", "tokio_wasi/net"]
tokio-native-tls-comp = ["tls", "tokio-native-tls"]
connection-manager = ["arc-swap", "futures", "aio"]
streams = []
[dev-dependencies]
futures = "0.3"
tokio_wasi = { version = "1", features = ["rt", "macros", "time"] }
[[test]]
name = "test_async"
required-features = ["tokio-comp"]
[[test]]
name = "test_async_async_std"
required-features = ["async-std-comp"]
[[test]]
name = "parser"
required-features = ["aio"]
[[test]]
name = "test_acl"
[[test]]
name = "test_json"
required-features = ["json", "serde/derive"]
[[bench]]
name = "bench_basic"
harness = false
required-features = ["tokio-comp"]
[[bench]]
name = "bench_cluster"
harness = false
required-features = ["cluster"]
[[example]]
name = "async-multiplexed"
required-features = ["tokio-comp"]
[[example]]
name = "async-await"
required-features = ["aio"]
[[example]]
name = "async-pub-sub"
required-features = ["aio"]
[[example]]
name = "async-scan"
required-features = ["aio"]
[[example]]
name = "async-connection-loss"
required-features = ["connection-manager"]
[[example]]
name = "streams"
required-features = ["streams"]