#deprecated #serialization #json #base64 #codec #hex #decoding

deprecated no-std rustc-serialize2

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. This crate is deprecated in favor of serde. Compared to the original rustc-serialize, this crate: Supports all rustc targets. Can work in no_std environments with the alloc crate.

1 unstable release

Uses old Rust 2015

0.3.25 Jul 11, 2019

#148 in #base64

MIT/Apache

230KB
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