diff --git a/Cargo.toml b/Cargo.toml index 0def4406..1ee57a58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/builder.rs b/src/builder.rs index d815af2a..4923a247 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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, diff --git a/src/rep.rs b/src/rep.rs index 4f276887..d5771d99 100644 --- a/src/rep.rs +++ b/src/rep.rs @@ -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)] diff --git a/src/transport.rs b/src/transport.rs index c465b7cc..da506b31 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -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};