wayray/crates/wayray-protocol/src/lib.rs

12 lines
356 B
Rust
Raw Normal View History

//! WayRay wire protocol definitions.
//!
//! Shared between wrsrvd (server) and wrclient (client).
//! Messages are serialized with postcard and framed with a 4-byte
//! length prefix for transmission over QUIC streams.
pub mod codec;
pub mod messages;
/// Current protocol version. Incremented on breaking changes.
pub const PROTOCOL_VERSION: u32 = 1;