Added chat service Updated packet service to pass the tcp stream around in a Arc type. Updated character position data to not require multiplying the coords Added more debug logs Added an interceptor for gRPC comms with the chat server Updated build and push script for the chat server changes
18 lines
584 B
Rust
18 lines
584 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/chat.proto",
|
|
"../proto/character.proto",
|
|
"../proto/character_common.proto",
|
|
],
|
|
&["../proto"],
|
|
)
|
|
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
|
}
|