From 4a5e20163e02d88bf590c7849ffffb3186007a42 Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Sun, 26 Apr 2015 15:08:26 +0800 Subject: [PATCH] (doc) update README --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 886735a..1187285 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ implementation for you. [![](http://meritbadge.herokuapp.com/tojson_macros)](https://crates.io/crates/tojson_macros) [![Build Status](https://travis-ci.org/sunng87/tojson_macros.svg?branch=master)](https://travis-ci.org/sunng87/tojson_macros) +## Crate + +```toml +tojson_macros = "*" +``` + ## Example Simply add `#[derive(ToJson)]` to your struct. @@ -16,7 +22,7 @@ Simply add `#[derive(ToJson)]` to your struct. extern crate rustc_serialize; -use rustc_serialize::json::{Json, ToJson}; +use rustc_serialize::json::ToJson; #[derive(ToJson)] struct Person {