downloader_mc

Crates.iodownloader_mc
lib.rsdownloader_mc
version0.1.3
created_at2025-05-18 10:44:23.647448+00
updated_at2025-05-20 14:53:40.354368+00
descriptionA library for downloading Minecraft assets and libraries.
homepage
repositoryhttps://github.com/aapelix/downloader
max_upload_size
id1678542
size75,201
Aaro Larjo (aapelix)

documentation

README

Forked from minecraft-rs/downloader. This crate adds features like fabric, forge etc. launchers, linux support and more

MC Downloader

Download minecraft client and libraries from rust.

Usage

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

Contribution

Feel free to contribute to the development of the library.

Commit count: 45

cargo fmt