Skip to main content

derec_proto/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! # Protobuf Bindings
4//!
5//! This module exposes the Rust types generated from the DeRec protocol
6//! protobuf definitions.
7//!
8//! The types are generated at build time using `prost` from the protocol
9//! `.proto` files and correspond directly to the message definitions used
10//! by the DeRec protocol.
11//!
12//! These structures are used internally by the library to:
13//!
14//! - serialize protocol messages before transmission
15//! - deserialize received messages
16//! - provide a strongly-typed representation of protocol data
17//!
18//! The generated code mirrors the protobuf schema and therefore follows the
19//! naming and structure defined in the protocol specification rather than
20//! typical Rust conventions.
21//!
22//! ## Important
23//!
24//! The contents of this module are **generated code** and should not be edited
25//! manually. Any changes must be performed in the protobuf definitions and the
26//! bindings regenerated.
27//!
28//! Most users of the library should interact with the higher-level APIs
29//! provided by the protocol flow modules (`pairing`, `sharing`, `verification`,
30//! and `recovery`) rather than manipulating protobuf messages directly.
31
32mod derec_proto {
33    include!(concat!(
34        env!("OUT_DIR"),
35        "/org.derecalliance.derec.protobuf.rs"
36    ));
37}
38
39pub use derec_proto::*;