codemp/build.rs

19 lines
468 B
Rust
Raw Normal View History

2022-07-10 19:01:56 +02:00
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
// .build_client(cfg!(feature = "client"))
// .build_server(cfg!(feature = "server")) // FIXME if false, build fails????
// .build_transport(cfg!(feature = "transport"))
.compile(
&[
"proto/common.proto",
"proto/cursor.proto",
"proto/files.proto",
"proto/auth.proto",
2024-01-01 23:34:59 +01:00
"proto/workspace.proto",
"proto/buffer.proto",
],
&["proto"],
)?;
2022-07-10 19:01:56 +02:00
Ok(())
}