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