kresp/
lib.rs

1//! This is a small, streaming RESP (REdis Serialization Protocol) parser with
2//! a focus on simplicity and ergonomics.
3//!
4//! I am working on an ergonomic async Redis client library, and built this as
5//! a precursor step towards that goal. To work best in an asynchronous
6//! settings, this library was designed for streaming from the start.
7//! Incomplete buffers can be sent to the [`RespParser`], which will internally
8//! preserve the buffers and parsing state to minimize re-parsing of incomplete
9//! data that could stream over a network connection.
10
11mod buffer;
12mod config;
13mod parser;
14mod resp;
15
16pub use config::RespConfig;
17pub use parser::{ParserError, RespParser};
18pub use resp::RespType;