Skip to main content

Crate reddb_wire

Crate reddb_wire 

Source
Expand description

RedDB wire protocol vocabulary.

This crate is the shared, transport-agnostic layer that reddb-server, reddb-client, and the official language drivers depend on. It deliberately has no dependency on the engine, storage, or runtime modules.

Today it exposes the conn_string connection-string parser. Future slices will add the RedWire frame layout, header types, and framing codec (see ADR 0001 in docs/adr/).

Re-exports§

pub use conn_string::parse;
pub use conn_string::parse_with_limits;
pub use conn_string::ConnStringLimits;
pub use conn_string::ConnectionTarget;
pub use conn_string::ParseError;
pub use conn_string::ParseErrorKind;
pub use redwire::BuildError;
pub use redwire::FrameBuilder;
pub use sanitizer::audit_safe_log_field;
pub use sanitizer::Boundary;
pub use sanitizer::ConnStringSanitizer;
pub use sanitizer::EscapeError;
pub use sanitizer::EscapedFor;
pub use sanitizer::ParsedConnString;
pub use sanitizer::Tainted;
pub use sanitizer::TaintedRef;
pub use sanitizer::TaintedTarget;
pub use topology::decode_topology;
pub use topology::encode_topology;
pub use topology::Endpoint;
pub use topology::ReplicaInfo;
pub use topology::Topology;
pub use topology::TopologyError;
pub use topology::MAX_KNOWN_TOPOLOGY_VERSION;
pub use topology::TOPOLOGY_HEADER_SIZE;
pub use topology::TOPOLOGY_WIRE_VERSION_V1;

Modules§

conn_string
Connection-string parser shared across reddb, reddb-client, red_client, and every language driver.
query_with_params
RedWire QueryWithParams payload codec.
redwire
RedWire — RedDB’s binary TCP/TLS wire protocol.
sanitizer
Connection-string sanitizer + typed taint guard (issue #179, ADR 0010).
topology
Canonical Topology payload — shared by both transports.