thunderstore

Crates.iothunderstore
lib.rsthunderstore
version
sourcesrc
created_at2024-07-15 17:59:51.826499
updated_at2024-07-15 17:59:51.826499
descriptionA library for interacting with the Thunderstore API
homepage
repositoryhttps://github.com/Kesomannen/thunderstore-client
max_upload_size
id1304107
size0
(Kesomannen)

documentation

README

Rust Thunderstore Client

A library for interacting with the Thunderstore API.

Example

#[tokio::main]
async fn main() -> thunderstore::Result<()> {
    let client = thunderstore::Client::builder()
        .with_token("tss_XXX")
        .build()?;

    let package = client.get_package(("Kesomannen", "GaleModManager")).await?;
     client.download_to_dir(&package.latest, r"C:\Users\bobbo\Downloads").await?;

     client.publish_file(
         "CoolMod.zip",
         PackageMetadata::new("Kesomannen", ["lethal-company"])
             .with_global_categories(["tools"])
             .with_categories("lethal-company", ["serverside"])
     ).await?;
 }
Commit count: 0

cargo fmt