Crate uranium_rs

Source
Expand description

§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.

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.

Re-exports§

pub use mine_data_structs;

Modules§

downloaders
error
modpack_maker
searcher
version_checker

Functions§

curse_pack_download
Easy to go function
download_minecraft
Easy to go function
init_logger
Init the logger and make a log.txt file to write logs content.
make_modpack
Easy to go function
rinth_pack_download
Easy to go function
set_threads
This function will set the max number of threads allowed to use.