ftbapi

Crates.ioftbapi
lib.rsftbapi
version1.0.0
created_at2025-12-22 19:15:38.141944+00
updated_at2025-12-22 19:15:38.141944+00
descriptionA Rust wrapper.
homepage
repositoryhttps://github.com/Hunam6/ftbapi
max_upload_size
id2000136
size69,016
Hunam (Elie TD) (Hunam6)

documentation

README

Feed The Beast logo

FTB API

A Rust wrapper.


Installation

cargo add ftbapi

Usage

use ftbapi::FTB;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let ftb = FTB::new()?;

    let modpacks = ftb.search_modpacks("Ocean", 5).await?;
    let modpack = ftb.get_modpack(modpacks.ftb_ids[0]).await?;
    let version_id = modpack.versions[0].id;
    let version = ftb.get_modpack_version(modpack.id, version_id).await?;

    for file in version.files.iter() {
        println!("{}/{}", file.install_path, file.name);
    }

    Ok(())
}

Credit

License

MIT

Commit count: 0

cargo fmt