diff --git a/README.md b/README.md index 9d8524a..c556095 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# minecraft-data-rs +# minecraft-data-rs [![](https://img.shields.io/crates/v/minecraft-data-rs)](https://crates.io/crates/minecraft-data-rs) [![](https://img.shields.io/docsrs/minecraft-data-rs)](https://docs.rs/minecraft-data-rs) This repository is a rust library to access minecraft data. The data itself hosted in the [minecraft-data](https://github.com/PrismarineJS/minecraft-data) repository diff --git a/minecraft-data b/minecraft-data index dcbdb99..7e84a96 160000 --- a/minecraft-data +++ b/minecraft-data @@ -1 +1 @@ -Subproject commit dcbdb99f078a84fa34a1dd920de1e9fdda8ecb78 +Subproject commit 7e84a9673bc954204cbcae7d62d336a34a8277e0 diff --git a/src/lib.rs b/src/lib.rs index 19bb012..10bc226 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,21 +1,4 @@ -//! This crate is a wrapper for accessing information from [minecraft-data)(https://github.com/PrismarineJS/minecraft-data). -//! -//! Usage: -//! ``` -//! 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 = api.foods.foods_array().unwrap(); -//! -//! for food in food { -//! println!("When eating {} you gain {} food points", food.name, food.food_points); -//! } -//! ``` -//! +#![doc=include_str!("../README.md")] #[macro_use] extern crate serde_derive;