David Tolnay 2af0701be6 Release 0.9.15
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJY/TrWAAoJEPm6FDuV/22CN1wQAJiKy4Rk3pQ8wgjS2rAkkIU4
 F4pFNNvTEIjz7sqZS22jKjTjw4Fa2+v6lriv/owWwpDDqQe7VH6/0qA66YhD0sxq
 iX3K+pyf5aG0Wj2onv7SaCFMfGxZX5nVubaEgw4esER9NqZDhNU70DpixDiQBekE
 gFsfWom31ulbcwQkUpH4updG2kCXClFVtZlSHKBpv/EQptAz1gjxEdhB9Wax7Ckm
 sxHk4oq2xPZTwEvWku6bhPSNC0g1P2HaWVe4NSlWcsJHq/mdrqnttOAlMgve1Kqy
 oS3pSdf1xbqNdzDIpOZZpDrz3HiP0TG9kvmL8DSucSv0DVhX4UQhsyQlREcY8zzg
 UJwFC2lWhYmZ6gMe2ExHV0WCZoKZH6DSLC3osue4LmC0niy7+MOMo9pPPYytHNx8
 24QSOGwb9DF5tmMDp0dt8yMOAyHV6vOxA3FnIcv3AuJlYu+Mcp3QPTThNUo36rZ2
 ThJvmWoaimIZGOT2K73reV4WjEGD0cmlINEL/W87UCCiAs14T1/3ttPmN3ACGVOk
 E06tWo7MEhzzo1sR36mFmP5NDnXvJpydmZCX0RK02qaPuhyN/1MuQ+8w/Zh5wnUZ
 fugomHfsd0x1uOF5fbtqGw9gLGx7vZADvF/Wnzw3uu7UPloSGq7fjE74X69CKhkb
 S92/a+c0AOMEoeO64gLU
 =PIhT
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJY/Ts8AAoJEPm6FDuV/22CPS0P/2mwTNCUnuBBB7nngxlEKZaL
 WMx8asNtVp7O4r8KoA8AMibbQ0PaMSBN52B7LdVN0IPwVnPVztwLtP+i96M9/oaB
 2ynHmLRFFaOspcZ0j+BHwQALXSf5paNnBQXEPFqiX/izlyNYLkGWOMN81JnKpNQk
 E0MiISLPadJxnuxjfBwAJsXVYvEod6it8JSRCp56/z1SrMlk2Ijpdh7JLi9oAu4p
 w8A7TPy/CKBmu8SN7oNCQmu1E0KGtgF3JtBfxG9x6FuSE2VyFDq02Op5thZZC9Ge
 rX9oVE0EGPW3OnrHBYf3BNd2xFTESTO3EoWnUit6QUUCjhrOJ7tCN7XVnhcu/xOE
 XTfN/0kwCCwlKJ5NAngrLkU+pnR5xf2xkNlCc42zrGWZuqcsOE4b6t0dFKRTHxZj
 FMx8M+j8/7H4VxzBZKW6XFypPVh4Fw7iFSG2OQ+U5JhuobgxUR8FHT8/cTUxV8s6
 gVwPJF1nQPU5x+WW+HsN+8DKMBDs9C9ATsSzkozP4F2cjFFdz9X1f+vYdFGStPxd
 +X91PcVUPBbshWfUo6sLjTKzJ6+eLcnZTbcVZO/bKbiBNsjfu4zSePXCZxEKwOkp
 Idt9JyAyULrC97NrPcfijZmGkvVDJ53rF15kDSj2TS46PJlxhsoiY91tsEcNHU94
 n3QeXKhzItZWgA0/3G5z
 =0Xli
 -----END PGP SIGNATURE-----

Merge tag 'v0.9.15' into 'origin/master'
2017-04-23 16:39:32 -07:00
2017-04-20 08:19:31 -07:00
2017-04-20 08:13:46 -07:00
2017-04-20 08:19:31 -07:00
2017-04-20 08:13:46 -07:00
2017-04-18 14:23:21 -07:00
2017-02-01 00:38:02 -08:00
2017-04-14 15:42:27 -07:00
2016-06-22 07:04:13 -07:00
2014-06-22 10:33:45 -04:00
2014-06-22 10:33:45 -04:00
2017-04-16 20:44:27 -07:00
2017-04-13 12:32:29 -07:00
2017-04-19 14:45:06 -07:00

Serde Build Status Latest Version

Serde is a framework for serializing and deserializing Rust data structures efficiently and generically.


You may be looking for:

Serde in action

#[macro_use]
extern crate serde_derive;

extern crate serde;
extern crate serde_json;

#[derive(Serialize, Deserialize, Debug)]
struct Point {
    x: i32,
    y: i32,
}

fn main() {
    let point = Point { x: 1, y: 2 };

    // Convert the Point to a JSON string.
    let serialized = serde_json::to_string(&point).unwrap();

    // Prints serialized = {"x":1,"y":2}
    println!("serialized = {}", serialized);

    // Convert the JSON string back to a Point.
    let deserialized: Point = serde_json::from_str(&serialized).unwrap();

    // Prints deserialized = Point { x: 1, y: 2 }
    println!("deserialized = {:?}", deserialized);
}

Getting help

Serde developers live in the #serde channel on irc.mozilla.org. The #rust channel is also a good resource with generally faster response time but less specific knowledge about Serde. If IRC is not your thing or you don't get a good response, we are happy to respond to GitHub issues as well.

License

Serde is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Description
Serialization framework for Rust
Readme 13 MiB
Languages
Rust 100%