kresp 0.1.2

My simple and ergonomic Rust crate for working with the REdis Serialization Protocol (RESP)
Documentation
/// Structure for memory limits per-parser
pub struct RespConfig {
    /// This is the maximum size of an individual RESP type
    pub max_resp_size: usize,
    /// This is the max size of the internal buffer
    pub max_buffer_size: usize,
}

const DEFAULT_MAX: usize = 512 * 1024 * 1024;

impl Default for RespConfig {
    fn default() -> Self {
        Self::new(DEFAULT_MAX, DEFAULT_MAX)
    }
}

impl RespConfig {
    pub fn new(max_resp_size: usize, max_buffer_size: usize) -> Self {
        RespConfig {
            max_resp_size,
            max_buffer_size,
        }
    }
}