Crate rustc_serialize

source ·
Expand description

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.


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

rustc-serialize = "0.3"

and this to your crate root:

extern crate rustc_serialize;


  • Base64 binary-to-text encoding
  • Hex binary-to-text encoding
  • JSON parsing and serialization


  • Trait for deserializing a type.
  • Trait for reading in an encoding for deserialization.
  • Trait with helper functions for implementing Decodable.
  • Trait for serializing a type.
  • Trait for writing out an encoding when serializing.
  • Trait with helper functions for implementing Encodable.