[package] authors = ["Alec Embke "] description = "An implementation of the RESP2 and RESP3 protocols." homepage = "https://github.com/aembke/redis-protocol.rs" keywords = ["redis", "protocol", "RESP", "no_std"] license = "MIT" name = "redis-protocol" readme = "README.md" repository = "https://github.com/aembke/redis-protocol.rs" version = "5.0.1" edition = "2021" exclude = ["fuzz", ".circleci", "benches"] [package.metadata.docs.rs] features = [ "bytes", "std", "codec", "convert", "resp2", "resp3" ] rustdoc-args = ["--cfg", "docsrs"] [dependencies] bytes = { version = "1.1", default-features = false, optional = true } bytes-utils = { version = "0.1", default-features = false, optional = true } cookie-factory = { version = "=0.3.2", default-features = false } crc16 = { version = "0.4" } indexmap = { version = "2.2", optional = true } log = "0.4" nom = { version = "7.1", default-features = false } libm = { version = "0.2", optional = true } hashbrown = { version = "0.14", optional = true } tokio-util = { version = "0.7", features = ["codec"], optional = true } [dev-dependencies] rand = "0.8" tokio = { version = "1.36", features = ["full"] } pretty_env_logger = "0.5" futures = "0.3" itertools = "0.12" criterion = { version = "0.4", features = ["html_reports"] } [features] default = ["std", "resp2", "resp3"] resp2 = [] resp3 = [] index-map = ["indexmap"] bytes = ["dep:bytes", "bytes-utils"] decode-logs = [] alloc = ["nom/alloc"] std = ["cookie-factory/default", "nom/default"] codec = ["tokio-util", "bytes"] convert = [] [lib] doc = true doctest = true name = "redis_protocol" test = true #[[bench]] #name = "resp2_decode" #harness = false #[[bench]] #name = "resp2_encode" #harness = false #[[bench]] #name = "resp3_encode" #harness = false #[[bench]] #name = "resp3_decode" #harness = false