Rust library for Pokemon Go proto buffer files, exported from the awesome protos of https://github.com/AeonLucid/POGOProtos
First of all, add this crate to your dependencies in the Cargo.toml
file (replace *
with the version you want):
toml
[dependencies]
pokemon-go-protobuf = "*"
Use it!
``` rust extern crate pokemongoprotobuf;
use pokemongoprotobuf::POGOProtos_Data::PlayerData;
pub fn main() { let x = PlayerData::new(); // Start using the protobuf structs to encode/decode } ```
Install protobuf 3 and rust-protobuf (cargo install protobuf
)
Update the submodule
shell
git submodule init
git submodule update
cd POGOProtos
git pull
cd ..
Execute ./compile.sh