Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serialize: Fully deprecate the library
This commit completes the deprecation story for the in-tree serialization library. The compiler will now emit a warning whenever it encounters `deriving(Encodable)` or `deriving(Decodable)`, and the library itself is now marked `#[unstable]` for when feature staging is enabled. All users of serialization can migrate to the `rustc-serialize` crate on crates.io which provides the exact same interface as the libserialize library in-tree. The new deriving modes are named `RustcEncodable` and `RustcDecodable` and require `extern crate "rustc-serialize" as rustc_serialize` at the crate root in order to expand correctly. To migrate all crates, add the following to your `Cargo.toml`: [dependencies] rustc-serialize = "0.1.1" And then add the following to your crate root: extern crate "rustc-serialize" as rustc_serialize; Finally, rename `Encodable` and `Decodable` deriving modes to `RustcEncodable` and `RustcDecodable`. [breaking-change]
- Loading branch information
1 parent
34d6800
commit a76a802
Showing
25 changed files
with
288 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a76a802
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from aturon
at alexcrichton@a76a802
a76a802
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging alexcrichton/rust/deprecate-serialise = a76a802 into auto
a76a802
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: {"merge_sha": "f3978a72e8ccbff7205875fc35605624585849a3"}
a76a802
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alexcrichton/rust/deprecate-serialise = a76a802 merged ok, testing candidate = f3978a72
a76a802
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2452
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2804
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2799
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2800
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2791
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2790
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2794
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2786
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2786
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2449
exception: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1291
exception: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1284