You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustc_serialize, for various reasons, is semi-deprecated. serde is the anointed successor.
serde is significantly more flexible than rustc_serialize and allows us to do a few things that make our (de)serialisation code just a little bit neater.
The only reason to avoid serde right now is that its derivation features depend on "Macros 1.1", which is currently only in nightly (see rust-lang/rust#35900 - it looks like it will be stabilised sometime quite soon). There is a workaround for stable compilers but it's quite messy. Hopefully, it should work fine with Rust 1.15 (the RFC won't be accepted in time for 1.14).
The only thing we still need rustc_serialize for is docopt, which doesn't support serde yet - this is being tracked at docopt/docopt.rs#128.
serde is Rust's next-generation serialisation framework that will
eventually supersede rustc_serialize.
Convert our JSON and TOML serialisation to use serde. We still depend on
rustc_serialize because docopt currently requires it.
Closes: ruscur#39 ("migrate from rustc_serialize to serde")
Signed-off-by: Andrew Donnellan <[email protected]>
ajdlinux
added a commit
to ajdlinux/snowpatch
that referenced
this issue
Mar 1, 2017
serde is Rust's next-generation serialisation framework that will
eventually supersede rustc_serialize.
Convert our JSON and TOML serialisation to use serde. We still depend on
rustc_serialize because docopt currently requires it.
Closes: ruscur#39 ("migrate from rustc_serialize to serde")
Signed-off-by: Andrew Donnellan <[email protected]>
rustc_serialize
, for various reasons, is semi-deprecated.serde
is the anointed successor.serde
is significantly more flexible thanrustc_serialize
and allows us to do a few things that make our (de)serialisation code just a little bit neater.The only reason to avoid
serde
right now is that its derivation features depend on "Macros 1.1", which is currently only in nightly (see rust-lang/rust#35900 - it looks like it will be stabilised sometime quite soon). There is a workaround for stable compilers but it's quite messy. Hopefully, it should work fine with Rust 1.15 (the RFC won't be accepted in time for 1.14).The only thing we still need
rustc_serialize
for isdocopt
, which doesn't supportserde
yet - this is being tracked at docopt/docopt.rs#128.See https://github.com/ajdlinux/snowpatch/tree/serde for my progress on this.
The text was updated successfully, but these errors were encountered: