We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870c6ac commit 39e02cdCopy full SHA for 39e02cd
futures-util/src/lib.rs
@@ -30,9 +30,6 @@ extern crate alloc;
30
#[macro_use(ready)]
31
extern crate futures_core;
32
33
-#[macro_use]
34
-mod macros;
35
-
36
// Macro re-exports
37
pub use futures_core::ready;
38
pub use pin_utils::pin_mut;
@@ -55,6 +52,16 @@ pub mod rand_reexport { // used by select!
55
52
#[doc(hidden)]
56
53
pub use futures_core::core_reexport;
57
54
+macro_rules! cfg_target_has_atomic {
+ ($($item:item)*) => {$(
+ #[cfg_attr(
58
+ feature = "cfg-target-has-atomic",
59
+ cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
60
+ )]
61
+ $item
62
+ )*};
63
+}
64
+
65
macro_rules! delegate_sink {
66
($field:ident, $item:ty) => {
67
fn poll_ready(
futures-util/src/macros/mod.rs
0 commit comments