Bincode 1.0.0-alpha2 no longer has the `bincode::serde` module.
This commit is contained in:
parent
1afa60f377
commit
d036c07370
|
@ -27,4 +27,4 @@ serde = { version = "0.9", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
serde_json = { version = ">=0.9.0" }
|
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 }
|
||||||
|
|
|
@ -584,8 +584,7 @@ mod serde {
|
||||||
fn test_serde_bincode() {
|
fn test_serde_bincode() {
|
||||||
// Bincode is relevant to test separately from JSON because
|
// Bincode is relevant to test separately from JSON because
|
||||||
// it is not self-describing.
|
// it is not self-describing.
|
||||||
use self::bincode::SizeLimit;
|
use self::bincode::{SizeLimit, serialize, deserialize};
|
||||||
use self::bincode::serde::{serialize, deserialize};
|
|
||||||
|
|
||||||
let dt = UTC.ymd(2014, 7, 24).and_hms(12, 34, 6);
|
let dt = UTC.ymd(2014, 7, 24).and_hms(12, 34, 6);
|
||||||
let encoded = serialize(&dt, SizeLimit::Infinite).unwrap();
|
let encoded = serialize(&dt, SizeLimit::Infinite).unwrap();
|
||||||
|
|
|
@ -1616,8 +1616,7 @@ mod serde {
|
||||||
fn test_serde_bincode() {
|
fn test_serde_bincode() {
|
||||||
// Bincode is relevant to test separately from JSON because
|
// Bincode is relevant to test separately from JSON because
|
||||||
// it is not self-describing.
|
// it is not self-describing.
|
||||||
use self::bincode::SizeLimit;
|
use self::bincode::{SizeLimit, serialize, deserialize};
|
||||||
use self::bincode::serde::{serialize, deserialize};
|
|
||||||
|
|
||||||
let d = NaiveDate::from_ymd(2014, 7, 24);
|
let d = NaiveDate::from_ymd(2014, 7, 24);
|
||||||
let encoded = serialize(&d, SizeLimit::Infinite).unwrap();
|
let encoded = serialize(&d, SizeLimit::Infinite).unwrap();
|
||||||
|
|
|
@ -1515,8 +1515,7 @@ mod serde {
|
||||||
// Bincode is relevant to test separately from JSON because
|
// Bincode is relevant to test separately from JSON because
|
||||||
// it is not self-describing.
|
// it is not self-describing.
|
||||||
use naive::date::NaiveDate;
|
use naive::date::NaiveDate;
|
||||||
use self::bincode::SizeLimit;
|
use self::bincode::{SizeLimit, serialize, deserialize};
|
||||||
use self::bincode::serde::{serialize, deserialize};
|
|
||||||
|
|
||||||
let dt = NaiveDate::from_ymd(2016, 7, 8).and_hms_milli(9, 10, 48, 90);
|
let dt = NaiveDate::from_ymd(2016, 7, 8).and_hms_milli(9, 10, 48, 90);
|
||||||
let encoded = serialize(&dt, SizeLimit::Infinite).unwrap();
|
let encoded = serialize(&dt, SizeLimit::Infinite).unwrap();
|
||||||
|
|
|
@ -1392,8 +1392,7 @@ mod serde {
|
||||||
fn test_serde_bincode() {
|
fn test_serde_bincode() {
|
||||||
// Bincode is relevant to test separately from JSON because
|
// Bincode is relevant to test separately from JSON because
|
||||||
// it is not self-describing.
|
// it is not self-describing.
|
||||||
use self::bincode::SizeLimit;
|
use self::bincode::{SizeLimit, serialize, deserialize};
|
||||||
use self::bincode::serde::{serialize, deserialize};
|
|
||||||
|
|
||||||
let t = NaiveTime::from_hms_nano(3, 5, 7, 98765432);
|
let t = NaiveTime::from_hms_nano(3, 5, 7, 98765432);
|
||||||
let encoded = serialize(&t, SizeLimit::Infinite).unwrap();
|
let encoded = serialize(&t, SizeLimit::Infinite).unwrap();
|
||||||
|
|
Loading…
Reference in New Issue