GW2 RS
GW2RS is an api wrapper around the ArenaNet Guild Wars 2 API, for Rust.
It makes heavy use of futures, in part due to the hyper backend. wrapped api calls return the GW2Result<T>
type, which is just an alias for boxed futures with the crate's custom APIError
type.
In general, you can use the library by first spinning up a tokio core, then passing a handle into the GW2 struct. This is necessary due to the HTTP calls being offloaded to hyper, and part of the instantiation of that code needs a handle to the event loop that everything will eventually run.
Examples / Demo
I try to include a quick cargo doc test example for every endpoint, but as things get pulled in they might not all have one.
extern crate gw2rs;
extern crate futures;
extern crate tokio_core;
use Core;
use Future;
use *;