Skip to content

Commit

Permalink
(doc) update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Apr 26, 2015
1 parent ddeda82 commit 4a5e201
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 {
Expand Down

0 comments on commit 4a5e201

Please sign in to comment.