parliament 0.1.0

Protocols, traits, and domain logic for graceful governance.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// parliament-core/src/protocol.rs

//! # The Parliament Protocol Tier
//!
//! This module contains the raw, untrusted data structures generated directly
//! from the `.proto` files. It serves as the serialization and wire format
//! for the Parliament ecosystem.
//!
//! **Warning:** Application logic should not operate on these types directly.
//! These types should be converted into the rich, validated domain models
//! from the `crate::model` module at the system's boundaries.

// The `include!` macro reads the specified file and pastes its contents here at compile time.
// `env!("OUT_DIR")` gets the path to the temporary build directory.
// `concat!` joins that path with the name of the generated file.
// `prost-build` names the output file after the .proto file (parliament.proto -> parliament.rs).
include!(concat!(env!("OUT_DIR"), "/parliament.rs"));