dspk-stream 0.0.10

Network sessions for continuous multi-channel signals: QUIC + TLS, protobuf messages
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Generates the protocol types from `proto/dspk_stream.proto`.

const PROTO_DIR: &str = "proto";
const PROTO_FILE: &str = "proto/dspk_stream.proto";

fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("cargo:rerun-if-changed={PROTO_FILE}");
    let descriptors = protox::compile([PROTO_FILE], [PROTO_DIR])?;
    prost_build::Config::new().compile_fds(descriptors)?;
    Ok(())
}