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"))
|
2024-02-01 17:54:36 +01:00
|
|
|
// .build_server(cfg!(feature = "server")) // FIXME if false, build fails????
|
2023-12-29 01:06:28 +01:00
|
|
|
// .build_transport(cfg!(feature = "transport"))
|
2023-12-28 22:04:40 +01:00
|
|
|
.compile(
|
|
|
|
&[
|
2024-02-07 01:09:28 +01:00
|
|
|
"proto/common.proto",
|
2023-12-29 01:06:28 +01:00
|
|
|
"proto/cursor.proto",
|
2024-01-01 23:29:35 +01:00
|
|
|
"proto/files.proto",
|
2024-02-07 01:09:28 +01:00
|
|
|
"proto/auth.proto",
|
2024-01-01 23:34:59 +01:00
|
|
|
"proto/workspace.proto",
|
2024-02-07 01:09:28 +01:00
|
|
|
"proto/buffer.proto",
|
2023-12-28 22:04:40 +01:00
|
|
|
],
|
2024-02-01 17:54:36 +01:00
|
|
|
&["proto"],
|
2023-12-29 01:06:28 +01:00
|
|
|
)?;
|
2022-07-10 19:01:56 +02:00
|
|
|
Ok(())
|
2024-02-01 17:54:36 +01:00
|
|
|
}
|