codemp/build.rs
alemi 1ee185b5ec feat: add auth service
sneaked in to help with server development
2024-02-01 17:54:36 +01:00

20 lines
553 B
Rust

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/user.proto",
"proto/cursor.proto",
"proto/files.proto",
"proto/workspace.proto",
"proto/buffer_service.proto",
"proto/cursor_service.proto",
"proto/workspace_service.proto",
"proto/auth_service.proto",
],
&["proto"],
)?;
Ok(())
}