summaryrefslogtreecommitdiffstats
path: root/tokio/src/lib.rs
diff options
context:
space:
mode:
authorArtem Vorotnikov <artem@vorotnikov.me>2020-01-02 22:22:15 +0300
committerCarl Lerche <me@carllerche.com>2020-01-02 11:22:15 -0800
commite43f28f6a8290d8b452c707de06e2d95236f59e3 (patch)
tree70ddb8eb9d7cfe7fe2946b9ca8fac3624535025c /tokio/src/lib.rs
parent3cf91db4b6429c88a74428ac29b99d3b822f0790 (diff)
macros: do not automatically pull rt-core (#2038)
Diffstat (limited to 'tokio/src/lib.rs')
-rw-r--r--tokio/src/lib.rs20
1 files changed, 11 insertions, 9 deletions
diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs
index fbb1bb0a..9658ccec 100644
--- a/tokio/src/lib.rs
+++ b/tokio/src/lib.rs
@@ -264,16 +264,18 @@ cfg_time! {
mod util;
cfg_macros! {
- cfg_rt_threaded! {
- #[cfg(not(test))] // Work around for rust-lang/rust#62127
- pub use tokio_macros::main_threaded as main;
- pub use tokio_macros::test_threaded as test;
- }
+ doc_rt_core! {
+ cfg_rt_threaded! {
+ #[cfg(not(test))] // Work around for rust-lang/rust#62127
+ pub use tokio_macros::main_threaded as main;
+ pub use tokio_macros::test_threaded as test;
+ }
- cfg_not_rt_threaded! {
- #[cfg(not(test))] // Work around for rust-lang/rust#62127
- pub use tokio_macros::main_basic as main;
- pub use tokio_macros::test_basic as test;
+ cfg_not_rt_threaded! {
+ #[cfg(not(test))] // Work around for rust-lang/rust#62127
+ pub use tokio_macros::main_basic as main;
+ pub use tokio_macros::test_basic as test;
+ }
}
}