hstreamdb-pb 0.1.0

Rust protocol library for HStreamDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
const PROTO_DIR: &str = "protocol/";
const PROTO_API: &str = "hstream.proto";

fn main() {
    let proto_src = format!("{PROTO_DIR}{PROTO_API}");
    println!("cargo:rerun-if-changed={proto_src}");

    tonic_build::configure()
        .build_client(true)
        .build_server(false)
        .compile(&[proto_src], &[PROTO_DIR])
        .unwrap()
}