pogo-masterfile 0.1.0

Runtime API for the Pokémon GO masterfile. Loads, indexes, and queries entries with per-group narrow-typed accessors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Same as load_async but using the blocking API.
//!
//! Run with: `cargo run --example load_blocking --features blocking --no-default-features`

#[cfg(feature = "blocking")]
use pogo_masterfile::blocking::Masterfile;

#[cfg(feature = "blocking")]
fn main() -> pogo_masterfile::Result<()> {
    let mf = Masterfile::from_remote()?;
    println!("loaded {} entries", mf.len());
    Ok(())
}

#[cfg(not(feature = "blocking"))]
fn main() {
    eprintln!("This example requires --features blocking --no-default-features");
}