kevy-resp
A zero-dependency RESP (REdis Serialization Protocol) codec in pure Rust.
Part of kevy, a single-machine, Redis-compatible key–value server — but usable standalone for anything that speaks RESP.
- Incremental parsing —
parse_commandreturnsOk(None)when the buffer holds only a partial frame, so it drops straight into a streaming read loop. - Both request forms — RESP2 multi-bulk (
*N\r\n$len\r\n…) and inline (PING\r\n). - Reply encoders that append to a caller-owned
Vec<u8>(no per-call allocation): simple strings, errors, integers, bulk/null-bulk, array headers. - Zero dependencies,
#![forbid(unsafe_code)]-friendly (nounsafe).
use ;
let = parse_command.unwrap.unwrap;
assert_eq!;
assert_eq!;
let mut out = Vecnew;
encode_simple_string;
assert_eq!;
License
Licensed under either of MIT or Apache-2.0 at your option.