steam-workshop-api 0.7.0

Provides an API wrapper for the steam workshop interfaces (IPublishedFileService and ISteamRemoteStorage) with the addition of proxy and api key support
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::sync::OnceLock;
use steam_workshop_api::SteamWorkshop;

static WS: OnceLock<SteamWorkshop> = OnceLock::new();
pub fn get_workshop() -> &'static SteamWorkshop {
    WS.get_or_init(|| {
        let mut client = SteamWorkshop::new();
        client.set_apikey(Some(env!("STEAM_API_KEY").to_string()));
        client
    })
}