Rust wrapper for minecraft-data
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trivernis 9ac3eb5eed
chore: Release minecraft-data-rs version 0.7.2
8 months ago
.github Add submodules handling to test workflow 1 year ago
minecraft-data@971d49da83 Update submodule 12 months ago
src fix: include all state ids 8 months ago
.gitignore Fix field visibility 2 years ago
.gitmodules Add versions and items api 3 years ago Add contribution guidelines 1 year ago
Cargo.toml chore: Release minecraft-data-rs version 0.7.2 8 months ago
LICENSE Add metadata for 3 years ago Increment version, update readme and add workflow 1 year ago


This repository is a rust library to access minecraft data. The data itself hosted in the minecraft-data repository and included into the library at compile time.

Excluding the minecraft-data at compile time

By adding default-features=false to the dependency in your Cargo.toml file, you can exclude the minecraft-data from the library.


use std::collections::HashMap;
use minecraft_data_rs::Api;
use minecraft_data_rs::models::food::Food;
use minecraft_data_rs::models::version::Version;

// create an api wrapper for the latest stable version
let api = Api::latest().expect("failed to retrieve latest version");
let food: Vec<Food> = api.foods.foods_array().unwrap();

for food in food {
    println!("When eating {} you gain {} food points",, food.food_points);


Feature Description
include-data includes the whole minecraft-data repository in the binary
api enables the api to query minecraft data


This project is Licensed under MIT.