#minecraft #version #enums

minecraft-version

Exhaustive enum of Minecraft versions

1 unstable release

0.1.0 Jan 26, 2023

#566 in Games

Apache-2.0 OR MIT

7KB
100 lines

minecraft-version

Exhaustive enum of Minecraft versions

How to use

use minecraft_version::MinecraftVersion;

fn main() {
    let my_version = MinecraftVersion::from_str("1.19.3").unwrap();
    println!("Your selected version is {}", my_version);
}

But how?

Invoking their API by crate named reqwest at compile time.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in minecraft-version by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps

~0–2MB
~30K SLoC