diff options
author | Evan Cameron <cameron.evan@gmail.com> | 2020-11-06 10:59:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 16:59:15 +0100 |
commit | 47658a6da5a6cf2d7db4727e61915709727cd632 (patch) | |
tree | f39936d87559c4a4a195df948ee6cb86791d882f /tokio-util/src/cfg.rs | |
parent | d7e3fcb9ee472d40337776cd5f5ffd51bc50272c (diff) |
util: resurrect UdpFramed (#3044)
Diffstat (limited to 'tokio-util/src/cfg.rs')
-rw-r--r-- | tokio-util/src/cfg.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tokio-util/src/cfg.rs b/tokio-util/src/cfg.rs index ee423d43..dad0c444 100644 --- a/tokio-util/src/cfg.rs +++ b/tokio-util/src/cfg.rs @@ -18,17 +18,15 @@ macro_rules! cfg_compat { } } -/* -macro_rules! cfg_udp { +macro_rules! cfg_net { ($($item:item)*) => { $( - #[cfg(all(feature = "udp", feature = "codec"))] - #[cfg_attr(docsrs, doc(cfg(all(feature = "udp", feature = "codec"))))] + #[cfg(all(feature = "net", feature = "codec"))] + #[cfg_attr(docsrs, doc(cfg(all(feature = "net", feature = "codec"))))] $item )* } } -*/ macro_rules! cfg_io { ($($item:item)*) => { |