danube-core 0.2.4

Danube messaging core types and traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::error::Error;
//use std::fs;
use std::path::Path;

fn main() -> Result<(), Box<dyn Error>> {
    let out_dir = Path::new("src/proto");
    tonic_build::configure().out_dir(out_dir).compile_protos(
        &[
            "proto/DanubeApi.proto",
            "proto/DanubeAdmin.proto",
            "proto/DanubeManagedStorage.proto",
        ],
        &["proto"],
    )?;

    Ok(())
}