Skip to main content

uor_addr/onnx/protobuf/
mod.rs

1//! A minimal `no_std` + `no_alloc` Protocol Buffers v3 wire-format
2//! decoder, sufficient for walking ONNX `ModelProto` messages by
3//! reference.
4//!
5//! Because `uor-addr` is no_std + no_alloc by default, the ONNX
6//! realization hand-writes the protobuf decode rather than pulling in
7//! `prost` / `protobuf` (which require `alloc`). The decoder is
8//! reference-based: it walks the input bytes, validates field numbers /
9//! wire types, and yields borrowed field views — it never copies.
10//!
11//! Authoritative source: <https://protobuf.dev/programming-guides/encoding/>.
12
13pub mod tag;
14pub mod varint;
15pub mod wire;
16
17pub use tag::{Tag, WireType};
18pub use varint::read_varint;
19pub use wire::{Field, FieldValue, MessageReader, WireError};