Skip to content

be more precise about serde_{derive,json} #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _posts/2018-10-25-Rust-1.30.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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
Expand Down