Summary:
This diff removes all occurrences of `extern crate` from //fbcode/common/rust// except within files included into bindgen code which are forced to use 2015 edition.
`#[macro_use]` attributes are replaced by 2018-style individual `use` of macros.
Reviewed By: jsgf
Differential Revision: D16179130
fbshipit-source-id: 25771eaec8e38043bfa1f9be267dc185758cd2d7
Summary: Test converting a small crate to Rust 2018
Reviewed By: StanislavGlebik
Differential Revision: D13606743
fbshipit-source-id: 5d09105d6918951dd190b63797f20acb1391ab9b
Summary: Use failure rather than error-chain for errors.
Reviewed By: StanislavGlebik
Differential Revision: D9780341
fbshipit-source-id: 4d41855093cf812e83b6c348a7499e85d9472daf
Summary:
Split the decoder out into its own function. This can handle partial results,
but the Decoder trait API cannot, so make sure the Decoder still only returns
complete results.
Reviewed By: farnz
Differential Revision: D9780342
fbshipit-source-id: b2439cba95b1e42444adbf2ee4b6e3792703a188