#rustc #serialization #serialize #base64 #hex #json #compiler #decoding #generic #mode

rustc-serialize

Generic serialization/deserialization support corresponding to the derive(RustcEncodable, RustcDecodable) mode in the compiler. Also includes support for hex, base64, and json encoding and decoding.

46 releases

0.3.24 Apr 21, 2017
0.3.23 Mar 15, 2017
0.3.22 Dec 7, 2016
0.3.21 Nov 10, 2016
0.1.5 Dec 24, 2014
Download history 52573/week @ 2019-04-01 54177/week @ 2019-04-08 39686/week @ 2019-04-15 58734/week @ 2019-04-22 55296/week @ 2019-04-29 39982/week @ 2019-05-06 61835/week @ 2019-05-13 61772/week @ 2019-05-20 71665/week @ 2019-05-27 60894/week @ 2019-06-03 82691/week @ 2019-06-10 54057/week @ 2019-06-17 39054/week @ 2019-06-24 33746/week @ 2019-07-01 36610/week @ 2019-07-08

218,340 downloads per month
Used in 2,026 crates (619 directly)

MIT/Apache

230KB
4.5K SLoC

rustc-serialize

NOTE: This crate is deprecated in favor of serde. No new feature development will happen in this crate, although bug fixes proposed through PRs will still be merged. It is very highly recommended by the Rust Library Team that you use serde, not this crate.

Serialization and deserialization support provided by the compiler in the form of derive(RustcEncodable, RustcDecodable).

Linux Build Status Windows Build Status

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
rustc-serialize = "0.3"

and this to your crate root:

extern crate rustc_serialize;

lib.rs:

Support code for encoding and decoding types.

NOTE: This crate is deprecated in favor of serde. No new feature development will happen in this crate, although bug fixes proposed through PRs will still be merged. It is very highly recommended by the Rust Library Team that you use serde, not this crate.

Usage

This crate is on crates.io and can be used by adding rustc-serialize to the dependencies in your project's Cargo.toml.

[dependencies]
rustc-serialize = "0.3"

and this to your crate root:

extern crate rustc_serialize;

No runtime deps