diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index e5d783bb..c1faaca9 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -1,5 +1,6 @@ //! A runtime implementation that runs everything on the current thread. +#[cfg(not(test))] // Work around for rust-lang/rust#62127 pub use actix_macros::{main, test}; mod arbiter; diff --git a/actix-testing/src/lib.rs b/actix-testing/src/lib.rs index ed831eec..e2541404 100644 --- a/actix-testing/src/lib.rs +++ b/actix-testing/src/lib.rs @@ -10,6 +10,7 @@ use net2::TcpBuilder; use tokio_net::driver::Handle; use tokio_net::tcp::TcpStream; +#[cfg(not(test))] // Work around for rust-lang/rust#62127 pub use actix_macros::test; /// The `TestServer` type.