4 个版本
使用旧 Rust 2015
| 0.1.4 | 2016年8月30日 |
|---|---|
| 0.1.2 | 2016年8月4日 |
| 0.1.1 | 2016年7月30日 |
| 0.1.0 | 2016年7月28日 |
#34 in #pokemon
4MB
74K SLoC
Pokémon Go Protobuffers for Rust
Rust library for Pokemon Go proto buffer files, exported from the awesome protos of https://github.com/AeonLucid/POGOProtos
使用方法
-
首先,将此crate添加到您的
Cargo.toml文件中的依赖项(将*替换为您想要的版本)[dependencies] pokemon-go-protobuf = "*" -
使用它!
extern crate pokemon_go_protobuf; use pokemon_go_protobuf::POGOProtos_Data::PlayerData; pub fn main() { let x = PlayerData::new(); // Start using the protobuf structs to encode/decode }
更新此存储库
-
安装 protobuf 3 和 rust-protobuf (运行
cargo install protobuf) -
更新子模块
git submodule init git submodule update cd POGOProtos git pull cd .. -
执行
./compile.sh
依赖项
~1.5MB
~28K SLoC