Crate rustc_serialize [] [src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, and unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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;

Modules

base64 [
Experimental
]

Base64 binary-to-text encoding

hex [
Experimental
]

Hex binary-to-text encoding

json [
Experimental
]

JSON parsing and serialization

Traits

Decodable [
Experimental
]

Trait for deserializing a type.

Decoder [
Experimental
]

Trait for reading in an encoding for deserialization.

DecoderHelpers [
Experimental
]

Trait with helper functions for implementing Decodable.

Encodable [
Experimental
]

Trait for serializing a type.

Encoder [
Experimental
]

Trait for writing out an encoding when serializing.

EncoderHelpers [
Experimental
]

Trait with helper functions for implementing Encodable.