From 6b0a81012b250983f5bb8242c0bc6c14d44ce6c8 Mon Sep 17 00:00:00 2001 From: James Munns Date: Tue, 12 Nov 2019 01:28:38 +0100 Subject: [PATCH] Just use serde as a feature directly --- Cargo.toml | 6 +----- src/path/pathbuf.rs | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cf9f89f..ed0d391 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,15 +33,11 @@ default = [ "mio-uds", "num_cpus", "pin-project-lite", - "serde-support", + "serde", ] docs = ["attributes", "unstable"] unstable = ["default", "broadcaster"] attributes = ["async-attributes"] -serde-support = [ - "default", - "serde", -] std = [ "async-macros", "crossbeam-utils", diff --git a/src/path/pathbuf.rs b/src/path/pathbuf.rs index f7b9f61..386acbf 100644 --- a/src/path/pathbuf.rs +++ b/src/path/pathbuf.rs @@ -13,16 +13,16 @@ use crate::path::Path; use crate::prelude::*; #[cfg(feature = "unstable")] use crate::stream::{self, FromStream, IntoStream}; -#[cfg(feature = "serde-support")] +#[cfg(feature = "serde")] use serde::{Serialize, Deserialize}; /// This struct is an async version of [`std::path::PathBuf`]. /// /// [`std::path::Path`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html -#[cfg_attr(feature = "serde-support", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PathBuf { - #[cfg_attr(feature = "serde-support", serde(flatten))] + #[cfg_attr(feature = "serde", serde(flatten))] inner: std::path::PathBuf, }