Clarify the README example for local builds

This commit is contained in:
hcpl 2017-10-31 21:20:23 +02:00
parent ad680cbd44
commit 3bbf70575b

View File

@ -20,10 +20,23 @@ You may be looking for:
## Serde in action
**Cargo.toml**:
```toml
[dependencies]
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
```
Click on the "Run" button to have a quick taste:
<a href="http://play.integer32.com/?gist=9003c5b88c1f4989941925d7190c6eec" target="_blank">
<img align="right" width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
</a>
**src/lib.rs**:
```rust
#[macro_use]
extern crate serde_derive;