thunderstore

Crates.iothunderstore
lib.rsthunderstore
version0.3.1
created_at2024-07-15 17:59:51.826499+00
updated_at2025-04-22 16:47:28.826772+00
descriptionA library for interacting with the Thunderstore API
homepage
repositoryhttps://github.com/Kesomannen/thunderstore-client
max_upload_size
id1304107
size123,360
(Kesomannen)

documentation

README

Thunderstore Client

A library for interacting with the Thunderstore API.

See the crate docs for more information.

Examples

#[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?;
    let _bytes = client.download(package.latest.ident).await?;

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

cargo fmt