steam-rs 0.5.1

Safe Rust bindings for the Steam Web API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use steam_rs::Steam;

mod common;

#[tokio::test]
pub async fn get_server_info() {
    println!("{:?}", Steam::get_server_info().await.unwrap());
}

#[tokio::test]
pub async fn get_supported_api_list() {
    let steam = Steam::new(&std::env::var("STEAM_API_KEY").expect("Missing an API key"));
    println!("{:?}", steam.get_supported_api_list().await.unwrap());
}