Crate kresp

Source
Expand description

This is a small, streaming RESP (REdis Serialization Protocol) parser with a focus on simplicity and ergonomics.

I am working on an ergonomic async Redis client library, and built this as a precursor step towards that goal. To work best in an asynchronous settings, this library was designed for streaming from the start. Incomplete buffers can be sent to the RespParser, which will internally preserve the buffers and parsing state to minimize re-parsing of incomplete data that could stream over a network connection.

Structs§

RespConfig
Structure for memory limits per-parser
RespParser
The parser itself, use RespParser::read to provide it buffers to parse

Enums§

ParserError
Error enumeration used when a parsing error occurs
RespType
Enum for RESP types