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::configure() | tonic_build::configure() | ||||
.build_server(true) | .build_server(true) | ||||
.build_client(false) | .build_client(false) | ||||
.compile( | .compile( | ||||
&[ | &[ | ||||
"../../shared/protos/identity_client.proto", | "../../shared/protos/identity_client.proto", | ||||
"../../shared/protos/identity_authenticated.proto", | "../../shared/protos/identity_authenticated.proto", | ||||
], | ], | ||||
&["../../shared/protos/"], | &["../../shared/protos/"], | ||||
)?; | )?; | ||||
tonic_build::configure() | |||||
.build_server(false) | |||||
.build_client(true) | |||||
.compile( | |||||
&["../../shared/protos/tunnelbroker.proto"], | |||||
&["../../shared/protos/"], | |||||
)?; | |||||
Ok(()) | Ok(()) | ||||
} | } |