Add badges to README

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/6/head
trivernis 3 years ago
parent c2b1363560
commit 660a077847
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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. 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 The data itself hosted in the [minecraft-data](https://github.com/PrismarineJS/minecraft-data) repository

@ -1 +1 @@
Subproject commit dcbdb99f078a84fa34a1dd920de1e9fdda8ecb78 Subproject commit 7e84a9673bc954204cbcae7d62d336a34a8277e0

@ -1,21 +1,4 @@
//! This crate is a wrapper for accessing information from [minecraft-data)(https://github.com/PrismarineJS/minecraft-data). #![doc=include_str!("../README.md")]
//!
//! 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<Food> = api.foods.foods_array().unwrap();
//!
//! for food in food {
//! println!("When eating {} you gain {} food points", food.name, food.food_points);
//! }
//! ```
//!
#[macro_use] #[macro_use]
extern crate serde_derive; extern crate serde_derive;

Loading…
Cancel
Save