2022-07-10 19:01:56 +02:00
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
2023-12-28 22:04:40 +01:00
|
|
|
tonic_build::configure()
|
2023-12-29 01:06:28 +01:00
|
|
|
// .build_client(cfg!(feature = "client"))
|
|
|
|
//.build_server(cfg!(feature = "server")) // FIXME if false, build fails????
|
|
|
|
// .build_transport(cfg!(feature = "transport"))
|
2023-12-28 22:04:40 +01:00
|
|
|
.compile(
|
|
|
|
&[
|
2023-12-29 01:06:28 +01:00
|
|
|
"proto/user.proto",
|
|
|
|
"proto/cursor.proto",
|
2024-01-01 23:29:35 +01:00
|
|
|
"proto/files.proto",
|
2024-01-01 23:34:59 +01:00
|
|
|
"proto/workspace.proto",
|
2023-12-28 22:04:40 +01:00
|
|
|
"proto/buffer_service.proto",
|
|
|
|
"proto/cursor_service.proto",
|
|
|
|
"proto/workspace_service.proto"
|
|
|
|
],
|
2023-12-29 01:06:28 +01:00
|
|
|
&["proto"]
|
|
|
|
)?;
|
2022-07-10 19:01:56 +02:00
|
|
|
Ok(())
|
2023-12-28 22:04:40 +01:00
|
|
|
}
|