uranium-rs 1.0.1

Lib for downloading/making minecraft and modpacks
Documentation

uranium

The uranium crate provides an easy, high-level API for:

  • Downloading Minecraft instances, mods from Rinth/Curse
  • Making a modpack from a given directory
  • Update a modpack from a given directory

Also, uranium provides high modularity level when it comes to downloaders. Through the FileDownloader trait.

When using downloaders such as RinthDownloader it takes a generic parameter T: FileDownloader so YOU the user can implement your own downloader if you dislike mine :( or thinks you can do a faster one.

# async fn x() {
use uranium_rs::downloaders::{Downloader, RinthDownloader};

let mut rinth = RinthDownloader::<Downloader>::new("path", "destination").unwrap();

if let Err(e) = rinth.complete().await {
    println!("Something went wrong: {e}")
} else {
    println!("Download complete!")
}
# }

This crate is under development so breaking changes may occur in later versions, but I'll try to avoid them.