summaryrefslogtreecommitdiff
path: root/build.rs
blob: 670350fbca92a609406511fe2e0faa90cd5f10c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::PathBuf;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    tonic_build::compile_protos("proto/clawflake.proto")?;

    tonic_build::configure()
        .out_dir(PathBuf::from("./"))
        .build_server(false)
        .compile(&["proto/clawflake.proto"], &["proto"])
        .unwrap();
    Ok(())
}