Skip to content

Commit 6b0a810

Browse files
author
James Munns
committed
Just use serde as a feature directly
1 parent c5a757f commit 6b0a810

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,11 @@ default = [
3333
"mio-uds",
3434
"num_cpus",
3535
"pin-project-lite",
36-
"serde-support",
36+
"serde",
3737
]
3838
docs = ["attributes", "unstable"]
3939
unstable = ["default", "broadcaster"]
4040
attributes = ["async-attributes"]
41-
serde-support = [
42-
"default",
43-
"serde",
44-
]
4541
std = [
4642
"async-macros",
4743
"crossbeam-utils",

src/path/pathbuf.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ use crate::path::Path;
1313
use crate::prelude::*;
1414
#[cfg(feature = "unstable")]
1515
use crate::stream::{self, FromStream, IntoStream};
16-
#[cfg(feature = "serde-support")]
16+
#[cfg(feature = "serde")]
1717
use serde::{Serialize, Deserialize};
1818

1919
/// This struct is an async version of [`std::path::PathBuf`].
2020
///
2121
/// [`std::path::Path`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html
22-
#[cfg_attr(feature = "serde-support", derive(Serialize, Deserialize))]
22+
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
2323
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
2424
pub struct PathBuf {
25-
#[cfg_attr(feature = "serde-support", serde(flatten))]
25+
#[cfg_attr(feature = "serde", serde(flatten))]
2626
inner: std::path::PathBuf,
2727
}
2828

0 commit comments

Comments
 (0)