plexi-core 0.1.2

A flexible auditor companion client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::io::Result;

const PROTOBUF_BASE_DIRECTORY: &str = "src/proto/specs";
const PROTOBUF_FILES: [&str; 1] = ["types"];

fn build_protobufs() -> Result<()> {
    let files = PROTOBUF_FILES.map(|file| format!("{PROTOBUF_BASE_DIRECTORY}/{file}.proto"));
    prost_build::compile_protos(&files, &[PROTOBUF_BASE_DIRECTORY])?;
    Ok(())
}

fn main() -> Result<()> {
    build_protobufs()?;
    Ok(())
}