vectorizer_sdk/rpc/codec.rs
1//! VectorizerRPC frame codec โ `[u32 LE len][MessagePack body]`.
2//!
3//! Wire spec ยง 1: `docs/specs/VECTORIZER_RPC.md`.
4//!
5//! This module used to be a byte-for-byte hand-port of the server's
6//! `vectorizer::protocol::rpc::codec`. Under
7//! `phase4_split-vectorizer-workspace` sub-phase 6 the server's
8//! codec moved into the standalone `vectorizer-protocol` crate;
9//! this module now re-exports it so the SDK and the server cannot
10//! disagree on framing โ they're literally the same Rust functions
11//! compiled from the same source.
12
13pub use vectorizer_protocol::rpc_wire::codec::{
14 MAX_BODY_SIZE, decode_frame, encode_frame, read_request, read_response, write_request,
15 write_response,
16};