Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate serde dependency to use derive feature #152

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ tokio = "0.1.15"
tokio-codec = "0.1.1"
tokio-io = "0.1.11"
url = "1.7.2"
serde = "1.0.87"
serde_derive = "1.0.87"
serde = { version = "1.0.87", features = ["derive"] }
serde_json = "1.0.38"

[dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use crate::{errors::Error, Result};
use serde::Serialize;
use serde_derive::Serialize;
use serde_json::{self, json, map::Map, Value};
use std::{
cmp::Eq,
Expand Down
2 changes: 1 addition & 1 deletion src/rep.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Rust representations of docker json structures

use serde_derive::{Deserialize, Serialize};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Clone, Debug, Serialize, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use hyperlocal::UnixConnector;
use hyperlocal::Uri as DomainUri;
use log::debug;
use mime::Mime;
use serde_derive::{Deserialize, Serialize};
use serde::{Deserialize, Serialize};
use serde_json;
use std::fmt;
use tokio_io::{AsyncRead, AsyncWrite};
Expand Down