15 lines
584 B
Rust
15 lines
584 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
// Servers for the services lore-forge provides (and fakes of loreserver's, in tests);
|
|
// clients for the loreserver services the repository browser reads.
|
|
tonic_prost_build::configure().build_client(true).build_server(true).compile_protos(
|
|
&[
|
|
"proto/lore/user/v1/user.proto",
|
|
"proto/lore/revision/v1/revision.proto",
|
|
"proto/lore/repository/v1/repository.proto",
|
|
"proto/lore/thin_client/v1/thin_client.proto",
|
|
],
|
|
&["proto"],
|
|
)?;
|
|
Ok(())
|
|
}
|