Skip to content

Commit

Permalink
conditionally apply async dispatcher macros for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed May 31, 2024
1 parent 5141a04 commit 4ec5cea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ default = ["tokio-runtime", "all-transport"]
tokio-runtime = ["tokio", "tokio-util"]
async-std-runtime = ["async-std"]
async-dispatcher-runtime = ["async-std", "async-dispatcher"]
async-dispatcher-macros = ["async-dispatcher/macros"]
all-transport = ["ipc-transport", "tcp-transport"]
ipc-transport = []
tcp-transport = []
Expand Down
5 changes: 4 additions & 1 deletion src/async_rt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ extern crate async_std;
#[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 comments on commit 4ec5cea

Please sign in to comment.