Crates.io | mc_downloader |
lib.rs | mc_downloader |
version | 0.1.0 |
source | src |
created_at | 2023-09-11 23:22:03.49422 |
updated_at | 2023-09-11 23:22:03.49422 |
description | A library for downloading Minecraft assets and libraries. |
homepage | |
repository | https://github.com/minecraft-rs/downloader |
max_upload_size | |
id | 970215 |
size | 61,089 |
Download minecraft client and libraries from rust.
Download the client and libraries:
let path = "./.minecraft".to_string();
let version = "1.19.4".to_string();
match ClientDownloader::new() {
Ok(downloader) => {
println!("Start Download Minecraft {version} version in {path}");
downloader
.download_version(
&version,
&PathBuf::from(path),
None,
None,
None,
)
.unwrap();
}
Err(e) => println!("{e:?}"),
}
Feel free to contribute to the development of the library.