bb_ir/proto/mod.rs
1//! Prost-generated proto bindings.
2//!
3//! Re-exports the modules produced by `bb-ir/build.rs` from the
4//! canonical proto sources at the workspace root:
5//!
6//! - `proto/onnx-ml.proto` - vendored canonical ONNX schema
7//! (Apache-2.0).
8//! - `proto/bb_core.proto` - the framework's core schema covering
9//! the wire envelope, slot-fill batching, peer identity, and
10//! snapshots.
11
12/// Vendored canonical ONNX schema (Apache-2.0). Source of
13/// `ModelProto`, `GraphProto`, `NodeProto`, `ValueInfoProto`,
14/// `TensorProto`, `AttributeProto`, etc. Matches `package onnx;`.
15#[allow(missing_docs, clippy::doc_overindented_list_items)]
16pub mod onnx {
17 include!(concat!(env!("OUT_DIR"), "/onnx.rs"));
18}
19
20/// Framework core schema. Covers the wire envelope (`WireEnvelope`,
21/// `OpsetId`, `WireCorrelation`, `CorrelationKind`), data-plane
22/// batching (`SlotFillBatch`, `SlotFill`), peer identity
23/// (`PeerProto`), and snapshots (`NodeSnapshotProto`,
24/// `ComponentSnapshotProto`). Matches `package bb.core;`.
25#[allow(missing_docs, clippy::doc_overindented_list_items)]
26pub mod bb_core {
27 include!(concat!(env!("OUT_DIR"), "/bb.core.rs"));
28}
29
30mod onnx_view;
31pub use onnx_view::function_to_graph_view;