From 660a077847a7a93609e29aa4924201ca9f2bb722 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 14 Mar 2022 07:18:59 +0100 Subject: [PATCH] Add badges to README Signed-off-by: trivernis --- README.md | 2 +- minecraft-data | 2 +- src/lib.rs | 19 +------------------ 3 files changed, 3 insertions(+), 20 deletions(-) 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;