Skip to content

Commit

Permalink
tracing: depend on feature "std-future", not "std"
Browse files Browse the repository at this point in the history
Support for futures 0.3 Streams should depend on a combination of
features "futures-03" and "std-future", not "std".

Refs: tokio-rs#226
  • Loading branch information
obergner committed Jan 22, 2020
1 parent 507db1e commit 05a929a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-futures/src/lib.rs
Expand Up @@ -303,7 +303,7 @@ impl<T: futures_01::Sink> futures_01::Sink for Instrumented<T> {
}
}

#[cfg(all(feature = "futures-03", feature = "std"))]
#[cfg(all(feature = "futures-03", feature = "std-future"))]
#[cfg_attr(docsrs, doc(cfg(all(feature = "futures-03", feature = "std-future"))))]
impl<T: futures::Stream> futures::Stream for Instrumented<T> {
type Item = T::Item;
Expand Down

0 comments on commit 05a929a

Please sign in to comment.