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
fn main() -> Result<(), Box<dyn std::error::Error>> {
    // This tells Cargo to re-run this build script only if the .proto file changes.
    println!("cargo:rerun-if-changed=proto/parliament.proto");

    prost_build::Config::new()
        // This is a key performance optimization. It tells prost to use the `bytes::Bytes`
        // type for `bytes` fields in the .proto file. This makes clones an O(1) operation.
        .bytes(&["."])
        // Compile the .proto file. The generated code will be placed in `OUT_DIR`.
        .compile_protos(&["proto/parliament.proto"], &["proto/"])?;

    Ok(())
}