Changeset View
Changeset View
Standalone View
Standalone View
services/identity/build.rs
fn main() -> Result<(), Box<dyn std::error::Error>> { | fn main() -> Result<(), Box<dyn std::error::Error>> { | ||||
tonic_build::compile_protos("../../shared/protos/identity.proto")?; | tonic_build::configure() | ||||
.build_server(true) | |||||
.build_client(false) | |||||
.compile( | |||||
&[ | |||||
"../../shared/protos/identity.proto", | |||||
"../../shared/protos/identity_client.proto", | |||||
], | |||||
&["../../shared/protos/"], | |||||
)?; | |||||
Ok(()) | Ok(()) | ||||
} | } |