safecoin-storage-proto 1.6.18

Safecoin Storage Protobuf Definitions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() -> Result<(), std::io::Error> {
    let proto_base_path = std::path::PathBuf::from("proto");
    let proto_files = ["confirmed_block.proto", "transaction_by_addr.proto"];
    let mut protos = Vec::new();
    for proto_file in &proto_files {
        let proto = proto_base_path.join(proto_file);
        println!("cargo::rerun-if-changed={}", proto.display());
        protos.push(proto);
    }

    tonic_build::configure()
        .build_client(true)
        .build_server(false)
        .format(true)
        .compile(&protos, &[proto_base_path])
}