Files
osirose-new/packet-service/build.rs
raven 17f653c629 - update: packet server character handler
- add: character grpc client interface to packet service
2024-12-27 19:00:06 -05:00

10 lines
412 B
Rust

fn main() {
// gRPC Client code
tonic_build::configure()
.build_server(false) // Generate gRPC server code?
.compile_well_known_types(true)
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
.compile_protos(&["../proto/auth.proto", "../proto/character.proto"], &["../proto"])
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
}