Skip to main content

reallyme_codec_proto/
lib.rs

1// SPDX-FileCopyrightText: 2026 ReallyMe LLC
2//
3// SPDX-License-Identifier: MIT OR Apache-2.0
4
5//! ReallyMe codec protobuf error envelopes with generated Buffa bindings.
6
7/// Generated protobuf boundary.
8pub mod generated;
9
10#[cfg(feature = "generated")]
11mod error;
12#[cfg(feature = "generated")]
13mod limits;
14#[cfg(feature = "generated")]
15mod wire;
16
17#[cfg(feature = "generated")]
18pub use error::{
19    codec_error, CodecWireError, CodecWireErrorBranch, CodecWireErrorConstructionError,
20    CodecWireErrorOrigin, CodecWireResult,
21};
22#[cfg(feature = "generated")]
23pub use limits::{
24    MAX_CODEC_PROTO_ERROR_ENVELOPE_BYTES, MAX_CODEC_PROTO_JSON_BYTES, MAX_CODEC_PROTO_MESSAGE_BYTES,
25};
26#[cfg(feature = "generated")]
27pub use wire::{decode_json, decode_protobuf, encode_protobuf};