satd_events_proto/lib.rs
1//! Generated protobuf and tonic types for the satd Streaming Consumption API
2//! (`satd.events.v1`).
3//!
4//! This crate contains only generated code — no logic. It is the single codegen
5//! site for the wire schema; both the server (`satd-events`) and the client SDK
6//! (`satd-events-client`) depend on it so the `.proto` has one source of truth.
7//!
8//! The module path mirrors the proto package: types are exposed at
9//! [`satd::events::v1`], and re-exported at the crate root as [`v1`] for the
10//! common short alias `use satd_events_proto::v1 as pb;`.
11#![allow(clippy::all)]
12#![allow(clippy::pedantic)]
13#![allow(missing_docs)]
14
15pub mod satd {
16 pub mod events {
17 pub mod v1 {
18 tonic::include_proto!("satd.events.v1");
19 }
20 }
21}
22
23pub use self::satd::events::v1 as v1;
24
25/// The `NodeEvent.schema_version` this crate's types describe. Mirrors
26/// `node::events::SCHEMA_VERSION` in the satd node; the two are bumped together.
27/// A node advertises its value in the `satd-events-schema` response header.
28pub const SCHEMA_VERSION: u32 = 1;