mc_downloader

Crates.iomc_downloader
lib.rsmc_downloader
version0.1.0
sourcesrc
created_at2023-09-11 23:22:03.49422
updated_at2023-09-11 23:22:03.49422
descriptionA library for downloading Minecraft assets and libraries.
homepage
repositoryhttps://github.com/minecraft-rs/downloader
max_upload_size
id970215
size61,089
Sammwy (sammwyy)

documentation

README

MC Downloader

Download minecraft client and libraries from rust.

Usage

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:?}"),
}

Contribution

Feel free to contribute to the development of the library.

Commit count: 33

cargo fmt