From 26842652fcbcee3dd73c824bf85e8561b5d021fc Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 6 Feb 2019 20:17:38 +0100 Subject: [PATCH] Replace serde_derive by re-exports in serde --- Cargo.toml | 8 +++++--- src/lib.rs | 4 ++-- tests/ruma_api_macros.rs | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7faa1182..131220e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,11 +27,13 @@ features = ["nightly"] futures = "0.1.25" http = "0.1.14" hyper = "0.12.16" -serde = "1.0.80" -serde_derive = "1.0.80" -serde_json = "1.0.33" +serde_json = "1.0.38" serde_urlencoded = "0.5.4" url = "1.7.2" +[dev-dependencies.serde] +version = "1.0.87" +features = ["derive"] + [lib] proc-macro = true diff --git a/src/lib.rs b/src/lib.rs index 54149958..f57bc85d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -121,7 +121,7 @@ mod api; /// # fn main() { /// pub mod some_endpoint { /// use ruma_api_macros::ruma_api; -/// use serde_derive::{Deserialize, Serialize}; +/// use serde::{Deserialize, Serialize}; /// /// ruma_api! { /// metadata { @@ -157,7 +157,7 @@ mod api; /// /// pub mod newtype_body_endpoint { /// use ruma_api_macros::ruma_api; -/// use serde_derive::{Deserialize, Serialize}; +/// use serde::{Deserialize, Serialize}; /// /// #[derive(Clone, Debug, Deserialize, Serialize)] /// pub struct MyCustomType { diff --git a/tests/ruma_api_macros.rs b/tests/ruma_api_macros.rs index 7f007935..cd2e36f0 100644 --- a/tests/ruma_api_macros.rs +++ b/tests/ruma_api_macros.rs @@ -2,7 +2,7 @@ pub mod some_endpoint { use ruma_api_macros::ruma_api; - use serde_derive::{Deserialize, Serialize}; + use serde::{Deserialize, Serialize}; ruma_api! { metadata {