Crate squall_dot_io_resp

Source
Expand description

§RESP parser and validator.

A RESP (REdis Serialization Protocol) parser implementation, written with edge performance in mind.

If you are not familiar with RESP, consider starting here with RESP specs1. RESP is a binary safe serialization protocol. Initially developed for the ReDiS project, it injection safe (needs no escaping) and is fast forward as it requires no look-back in parsing.

This crate aims to parse and validate your RESP strings. Since the protocol can be used beyond its initial scope, to a general-purpose communication scheme.

To do so, its reuses Rust TryInto trait to try and parse your &str as a valid RESP. Implemented on a Value enum of RESP tokens, it returns a Rust Result<Value, Error>.

Should you find some issues2, please report on GitHub project, or consider opening a pull-request3.

Re-exports§

pub use error::Error;
pub use error::Node;
pub use value::Value;
pub use value::ValueResult;

Modules§

error
value