From b3935b5a4e9c414c9a2b6f5b2eec3a892901a77b Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Thu, 25 Oct 2018 19:21:42 +0200 Subject: [PATCH] be more precise about serde_{derive,json} serde_json doesn't contain any proc macros AFAIK --- _posts/2018-10-25-Rust-1.30.0.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/2018-10-25-Rust-1.30.0.md b/_posts/2018-10-25-Rust-1.30.0.md index 29648e151..f4b3303f6 100644 --- a/_posts/2018-10-25-Rust-1.30.0.md +++ b/_posts/2018-10-25-Rust-1.30.0.md @@ -31,7 +31,7 @@ of "Rust 2018." For more on that concept, please see our previous post ## Procedural Macros Way back in [Rust 1.15], we announced the ability to define "custom derives." For example, -with `serde_json`, you could +with `serde_derive`, you could ```rust #[derive(Serialize, Deserialize, Debug)] @@ -40,8 +40,8 @@ struct Pet { } ``` -And convert a `Pet` to and from JSON because `serde_json` defined `Serialize` and -`Deserialize` in a procedural macro. +And convert a `Pet` to and from JSON using `serde_json` because `serde_derive` +defined `Serialize` and `Deserialize` in a procedural macro. Rust expands on this by adding the ability to define two other kinds of advanced macros, "attribute-like procedural macros" and "function-like