#pokemon #type #go #protobuf

pokemon-go-protobuf

Pokemon Go proto buffer types

4 releases

Uses old Rust 2015

0.1.4 Aug 30, 2016
0.1.2 Aug 4, 2016
0.1.1 Jul 30, 2016
0.1.0 Jul 28, 2016

#34 in #pokemon

Beerware

4MB
74K SLoC

Pokémon Go Protobuffers for Rust

Crates.io

Rust library for Pokemon Go proto buffer files, exported from the awesome protos of https://github.com/AeonLucid/POGOProtos

Usage

  • First of all, add this crate to your dependencies in the Cargo.toml file (replace * with the version you want):

    [dependencies]
    pokemon-go-protobuf = "*"
    
  • Use it!

    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
    }
    

Update this repository

  • Install protobuf 3 and rust-protobuf (cargo install protobuf)

  • Update the submodule

    git submodule init
    git submodule update
    cd POGOProtos
    git pull
    cd ..
    
  • Execute ./compile.sh

Dependencies

~1.5MB
~28K SLoC