arnak 0.2.0

A Rust library for the BoardGameGeek XML API.
Documentation

Build crates.io Docs License: MIT Unsafe

Arnak

Rust library for BoardGameGeek XML API bindings.

Usage

use arnak::BoardGameGeekApi;

// Enter tokio async runtime.
let rt = tokio::runtime::Runtime::new().unwrap();
rt.block_on(async {
    let api = BoardGameGeekApi::new();
    let collection = api.collection().get_owned("bluebearbgg").await;
    match collection {
        Ok(collection) => println!("bluebearbgg owns {} games.", collection.items.len()),
        Err(e) => println!("Error: {e}"),
    }
})