4 releases
Uses old Rust 2015
0.2.0 | Jul 13, 2018 |
---|---|
0.1.2 | Jun 30, 2018 |
0.1.1 | Jun 30, 2018 |
0.1.0 | Jun 30, 2018 |
#4 in #destiny2
34KB
947 lines
bungie-rs
A Rust crate for interacting with the Bungie.net API
NOTE: This crate is in alpha and highly unstable!
Features
A direct 1:1 link to the Bungie.net API
Usage
extern crate bungie;
extern crate dotenv;
extern crate failure;
use bungie::BungieClient;
use std::env;
use dotenv::dotenv;
fn main() -> Result<(), failure::Error> {
dotenv()?;
let bungie = BungieClient::new(env::var("API_KEY")?);
let manifest = bungie.destiny2().get_destiny_manifest()?;
println!("{}", manifest.response.version);
Ok(())
}
Dependencies
~14–24MB
~425K SLoC