From 7f9ba155cb7c57a2ec279d385e15342e1f2edfdf Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 31 Oct 2017 21:47:30 -0700 Subject: [PATCH] Explain what each dependency is for --- README.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9058d244..21378d88 100644 --- a/README.md +++ b/README.md @@ -20,22 +20,30 @@ You may be looking for: ## Serde in action -**Cargo.toml**: +
+ +Click to show Cargo.toml. +Run this code in the playground. + ```toml [dependencies] + +# The core APIs, including the Serialize and Deserialize traits. Always +# required when using Serde. serde = "1.0" + +# Support for #[derive(Serialize, Deserialize)]. Required if you want Serde +# to work for structs and enums defined in your crate. serde_derive = "1.0" + +# Each data format lives in its own crate; the sample code below uses JSON +# but you may be using a different one. serde_json = "1.0" ``` -Click on the "Run" button to have a quick taste: - - - - - -**src/lib.rs**: +
+

```rust #[macro_use]