1 个不稳定版本
0.1.0 | 2021 年 1 月 27 日 |
---|
#53 在 #grpc-client
135KB
3K SLoC
nakama-rust
Nakama 服务器 gRPC 客户端代码。
使用 hyperium/tonic.
用法
查看示例 tests/
[dependencies]
nakama-rust = "0.1"
tonic = "0.4"
tokio = { version = "1.0.2", features = ["rt-multi-thread", "macros"] }
更新
依赖于 heroiclabs/nakama 作为 Git 子模块。
git clone https://github.com/harumaxy/nakama-rust.git
git submodule update
cargo build
然后,cargo 运行构建脚本 (build.rs
),并将客户端代码生成到 src/gen
依赖项
~5.5–7.5MB
~132K SLoC