- chore: ran cargo fix on the codebase
This commit is contained in:
@@ -4,13 +4,22 @@ fn main() {
|
||||
.build_server(true) // Generate gRPC server code
|
||||
.compile_well_known_types(true)
|
||||
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
|
||||
.compile_protos(&["../proto/common.proto", "../proto/session_service_api.proto"], &["../proto"])
|
||||
.compile_protos(
|
||||
&[
|
||||
"../proto/common.proto",
|
||||
"../proto/session_service_api.proto",
|
||||
],
|
||||
&["../proto"],
|
||||
)
|
||||
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
||||
|
||||
|
||||
// gRPC Client code
|
||||
tonic_build::configure()
|
||||
.build_server(false)
|
||||
.compile_well_known_types(true)
|
||||
.compile_protos(&["../proto/user_db_api.proto", "../proto/auth.proto"], &["../proto"])
|
||||
.compile_protos(
|
||||
&["../proto/user_db_api.proto", "../proto/auth.proto"],
|
||||
&["../proto"],
|
||||
)
|
||||
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user