We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5141a04 commit 4ec5ceaCopy full SHA for 4ec5cea
Cargo.toml
@@ -13,6 +13,7 @@ default = ["tokio-runtime", "all-transport"]
13
tokio-runtime = ["tokio", "tokio-util"]
14
async-std-runtime = ["async-std"]
15
async-dispatcher-runtime = ["async-std", "async-dispatcher"]
16
+async-dispatcher-macros = ["async-dispatcher/macros"]
17
all-transport = ["ipc-transport", "tcp-transport"]
18
ipc-transport = []
19
tcp-transport = []
src/async_rt/mod.rs
@@ -12,5 +12,8 @@ extern crate async_std;
12
#[cfg(feature = "async-std-runtime")]
pub use async_std::{main, test};
-#[cfg(feature = "async-dispatcher-runtime")]
+#[cfg(all(
+ feature = "async-dispatcher-runtime",
+ feature = "async-dispatcher-macros"
+))]
pub use async_dispatcher::{main, test};
0 commit comments