@@ -36,13 +36,13 @@ struct Pet {
36
36
The ` Debug ` trait is then implemented for ` Pet ` . However, this only worked for
37
37
traits provided as part of the standard library; it was not customizable. With
38
38
Rust 1.15, it now is. That means, if you want to turn your ` Pet ` into JSON, it's
39
- as easy as adding [ serde] to your ` Cargo.toml ` :
39
+ as easy as adding [ Serde ] [ serde ] to your ` Cargo.toml ` :
40
40
41
41
``` toml
42
42
[dependencies ]
43
- serde = " 0.9.0 "
44
- serde_derive = " 0.9.0 "
45
- serde_json = " 0.9.0 "
43
+ serde = " 0.9"
44
+ serde_derive = " 0.9"
45
+ serde_json = " 0.9"
46
46
```
47
47
48
48
[ serde ] : https://serde.rs
@@ -78,8 +78,8 @@ serialized = {"name":"Ferris"}
78
78
deserialized = Pet { name: "Ferris" }
79
79
```
80
80
81
- Another common use-case is [ Diesel] ( http:// diesel.rs/ ) . Say we wanted to store
82
- our ` Pet ` s in a database. We could do that like this:
81
+ Another common use-case is [ Diesel] [ diesel ] . Say we wanted to store our ` Pet ` s
82
+ in a database. We could do that like this:
83
83
84
84
``` rust
85
85
// some extern crate and use lines elided here
@@ -105,7 +105,9 @@ fn main() {
105
105
}
106
106
```
107
107
108
- For full instructions, see [ the website] [ Diesel ] .
108
+ For full instructions, see [ the website] [ diesel ] .
109
+
110
+ [ diesel ] : http://diesel.rs
109
111
110
112
These kinds of libraries are extremely powerful, but rely on custom derive for
111
113
ergonomics. While these libraries _ worked_ on Rust stable previously, they were
0 commit comments