Bincode 1.0.0-alpha2 no longer has the `bincode::serde` module.

This commit is contained in:
Kang Seonghoon 2017-02-14 03:28:14 +09:00
parent 1afa60f377
commit d036c07370
No known key found for this signature in database
GPG Key ID: 82440FABA6709020
5 changed files with 5 additions and 9 deletions

View File

@ -27,4 +27,4 @@ serde = { version = "0.9", optional = true }
[dev-dependencies]
serde_json = { version = ">=0.9.0" }
bincode = { version = "1.0.0-alpha1", features = ["serde"], default-features = false }
bincode = { version = "1.0.0-alpha2", features = ["serde"], default-features = false }

View File

@ -584,8 +584,7 @@ mod serde {
fn test_serde_bincode() {
// Bincode is relevant to test separately from JSON because
// it is not self-describing.
use self::bincode::SizeLimit;
use self::bincode::serde::{serialize, deserialize};
use self::bincode::{SizeLimit, serialize, deserialize};
let dt = UTC.ymd(2014, 7, 24).and_hms(12, 34, 6);
let encoded = serialize(&dt, SizeLimit::Infinite).unwrap();

View File

@ -1616,8 +1616,7 @@ mod serde {
fn test_serde_bincode() {
// Bincode is relevant to test separately from JSON because
// it is not self-describing.
use self::bincode::SizeLimit;
use self::bincode::serde::{serialize, deserialize};
use self::bincode::{SizeLimit, serialize, deserialize};
let d = NaiveDate::from_ymd(2014, 7, 24);
let encoded = serialize(&d, SizeLimit::Infinite).unwrap();

View File

@ -1515,8 +1515,7 @@ mod serde {
// Bincode is relevant to test separately from JSON because
// it is not self-describing.
use naive::date::NaiveDate;
use self::bincode::SizeLimit;
use self::bincode::serde::{serialize, deserialize};
use self::bincode::{SizeLimit, serialize, deserialize};
let dt = NaiveDate::from_ymd(2016, 7, 8).and_hms_milli(9, 10, 48, 90);
let encoded = serialize(&dt, SizeLimit::Infinite).unwrap();

View File

@ -1392,8 +1392,7 @@ mod serde {
fn test_serde_bincode() {
// Bincode is relevant to test separately from JSON because
// it is not self-describing.
use self::bincode::SizeLimit;
use self::bincode::serde::{serialize, deserialize};
use self::bincode::{SizeLimit, serialize, deserialize};
let t = NaiveTime::from_hms_nano(3, 5, 7, 98765432);
let encoded = serialize(&t, SizeLimit::Infinite).unwrap();