# Crate rustc_serialize [−] [src]

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 | Base64 binary-to-text encoding
hex | Hex binary-to-text encoding
json | JSON parsing and serialization

## Traits

Decodable | Trait for deserializing a type.
Decoder | Trait for reading in an encoding for deserialization.
DecoderHelpers | Trait with helper functions for implementing `Decodable`.
Encodable | Trait for serializing a type.
Encoder | Trait for writing out an encoding when serializing.
EncoderHelpers | Trait with helper functions for implementing `Encodable`.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)