Crates.io | downloader_mc |
lib.rs | downloader_mc |
version | 0.1.3 |
created_at | 2025-05-18 10:44:23.647448+00 |
updated_at | 2025-05-20 14:53:40.354368+00 |
description | A library for downloading Minecraft assets and libraries. |
homepage | |
repository | https://github.com/aapelix/downloader |
max_upload_size | |
id | 1678542 |
size | 75,201 |
Download minecraft client and libraries from rust.
Download the client and libraries:
let path = "./.minecraft".to_string();
let version = "1.21.5".to_string();
match ClientDownloader::new() {
Ok(downloader) => {
println!("Start Download Minecraft {version} version in {path}");
downloader
.download_version(
&version,
&PathBuf::from(path),
None,
None,
Some(Launcher::Fabric),
Some("0.16.14"),
None,
)
.unwrap();
}
Err(e) => println!("{e:?}"),
}
Feel free to contribute to the development of the library.