Skip to main content

macp_pb/
lib.rs

1//! Generated MACP protobuf message types.
2//!
3//! This crate contains the prost-generated message structs for the MACP wire
4//! format and all standards-track mode payloads. It is deliberately
5//! transport-free: it does **not** pull in `tonic`. The gRPC service stubs for
6//! `macp.v1` live in the `macp-runtime` crate (generated via `.extern_path()`
7//! against the message types defined here).
8
9// Doc comments in these modules are derived from the .proto source comments
10// and can contain text rustdoc reads as malformed markup (e.g. `<hex>`), so
11// rustdoc lints are suppressed on the generated code — there is nothing to fix
12// in output we don't hand-write.
13#[allow(rustdoc::all)]
14pub mod pb {
15    include!(concat!(env!("OUT_DIR"), "/macp.v1.rs"));
16}
17
18#[allow(rustdoc::all)]
19pub mod decision_pb {
20    include!(concat!(env!("OUT_DIR"), "/macp.modes.decision.v1.rs"));
21}
22
23#[allow(rustdoc::all)]
24pub mod proposal_pb {
25    include!(concat!(env!("OUT_DIR"), "/macp.modes.proposal.v1.rs"));
26}
27
28#[allow(rustdoc::all)]
29pub mod task_pb {
30    include!(concat!(env!("OUT_DIR"), "/macp.modes.task.v1.rs"));
31}
32
33#[allow(rustdoc::all)]
34pub mod handoff_pb {
35    include!(concat!(env!("OUT_DIR"), "/macp.modes.handoff.v1.rs"));
36}
37
38#[allow(rustdoc::all)]
39pub mod quorum_pb {
40    include!(concat!(env!("OUT_DIR"), "/macp.modes.quorum.v1.rs"));
41}
42
43#[allow(rustdoc::all)]
44pub mod multi_round_pb {
45    include!(concat!(env!("OUT_DIR"), "/macp.modes.multi_round.v1.rs"));
46}