0.1.4 |
|
---|---|
0.1.3 |
|
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
71 在 #grpc-client
135KB
3K SLoC
nakama-rust-gen
Nakama Server 的 gRPC 客户端代码。
使用 hyperium/tonic。
用法
查看示例 tests/auth.rs
[dependencies]
rust-nakama-gen = "0.1"
tonic = "0.4"
tokio = { version = "1.0.2", features = ["rt-multi-thread", "time", "fs", "macros", "net"] }
更新
依赖 heroiclabs/nakama 作为 Git 子模块。
git clone https://github.com/harumaxy/nakama-rust-gen.git
git submodule update
cargo build
然后,运行构建脚本 (build.rs
),客户端代码生成到 src/gen
依赖项
~8.5MB
~148K SLoC