Crates.io | nakama-rs |
lib.rs | nakama-rs |
version | 0.1.1 |
source | src |
created_at | 2021-04-07 03:45:50.513774 |
updated_at | 2021-04-16 15:08:55.489883 |
description | Pure rust nakama protocol implementation |
homepage | |
repository | |
max_upload_size | |
id | 380206 |
size | 197,613 |
Simple Bindings to the Nakama library!
Read the documentation.
unsafe
calls!Add the following to you Cargo.toml file:
nakama-rs = "*"
Use it like so:
use nakama_rs::*;
fn main() {
let mut client = ApiClient::new("defaultkey", "127.0.0.1", 7350, "http");
client.authenticate("email@email.com", "password");
client.tick();
}
For more examples, see the documentation and examples. To run the examples, you need a local Nakama instance running.
The easiest way is to run docker-compose up
in the examples/
folder.
For information on how to set up docker for usage with Nakama, see Docker quickstart.