| Crates.io | ftbapi |
| lib.rs | ftbapi |
| version | 1.0.0 |
| created_at | 2025-12-22 19:15:38.141944+00 |
| updated_at | 2025-12-22 19:15:38.141944+00 |
| description | A Rust wrapper. |
| homepage | |
| repository | https://github.com/Hunam6/ftbapi |
| max_upload_size | |
| id | 2000136 |
| size | 69,016 |
A Rust wrapper.
cargo add ftbapi
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(())
}
MIT