Rust Game Server Client SDK

This is the Rust version of the Agones Game Server Client SDK.

Check the Client SDK Documentation for more details on each of the SDK functions and how to run the SDK locally.


Download the source directly from Github .


  • CMake >= 3.8.0
  • Rust >= 1.19.0
  • Go (>=1.7)

The SDK needs the above for building to gRPC-rs.


Add this crate to dependencies section in your Cargo.toml. Specify a directory where this is located to the path.

agones = { path = "../agones/sdks/rust" }

Add extern crate agones to your crate root.

To begin working with the SDK, create an instance of it. This function blocks until connection and handshake are made.

let sdk = agones::Sdk::new()?;

To send a health check ping call

if {
    println!("Health ping sent");

To mark that the game session is completed and the game server should be shut down call sdk.shutdown().

if sdk.shutdown().is_err() {
    println!("Could not run Shutdown");

For more information, please read the SDK Overview, check out agones sdk implementation and also look at the Rust example .