#![forbid(unsafe_code)]
#![warn(missing_docs)]
mod argv;
mod argv_borrowed;
mod argv_pool;
mod argv_view;
mod error;
pub mod fuzz;
mod inline_ranges;
pub mod ops_table;
mod pubsub_event;
mod reply;
mod reply_encode;
mod reply_encode_resp3;
mod reply_parse;
mod request;
mod request_borrowed;
pub mod verb_arity;
pub use argv::{Argv, Command};
pub use argv_borrowed::ArgvBorrowed;
pub use argv_pool::ArgvPool;
pub use argv_view::{ArgvIter, ArgvView};
pub use error::{CmdError, ProtocolError};
pub use pubsub_event::PubsubEvent;
pub use reply::Reply;
pub use reply_encode::{
encode_array_len, encode_bulk, encode_command, encode_command_borrowed, encode_error,
encode_integer, encode_null_bulk, encode_simple_string,
};
pub use reply_encode_resp3::{
encode_big_number, encode_blob_error, encode_boolean, encode_double, encode_map_header,
encode_null, encode_push_header, encode_set_header, encode_verbatim,
};
pub use reply_parse::{TextedReply, parse_reply, parse_reply_keeping_double_text};
pub use request::{MAX_BULK_LEN, MAX_MULTIBULK_LEN, parse_command, parse_command_into};
pub use request_borrowed::parse_command_borrowed;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum RespVersion {
#[default]
V2,
V3,
}
const _: () = {
const fn send_sync<T: Send + Sync>() {}
send_sync::<Argv>();
send_sync::<ArgvBorrowed<'static>>();
send_sync::<ArgvPool>();
send_sync::<ArgvIter<'static, Argv>>();
send_sync::<CmdError>();
send_sync::<ProtocolError>();
send_sync::<Reply>();
send_sync::<PubsubEvent>();
send_sync::<RespVersion>();
send_sync::<ops_table::OpSpec>();
send_sync::<ops_table::NotifyKind>();
send_sync::<fuzz::Lcg>();
send_sync::<fuzz::Summary>();
send_sync::<fuzz::FuzzResult>();
};