mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
macros: do not automatically pull rt-core (#2038)
This commit is contained in:
committed by
Carl Lerche
parent
3cf91db4b6
commit
e43f28f6a8
+1
-1
@@ -54,7 +54,7 @@ io-driver = ["mio", "lazy_static"]
|
||||
io-util = ["memchr"]
|
||||
# stdin, stdout, stderr
|
||||
io-std = ["rt-core"]
|
||||
macros = ["rt-core", "tokio-macros"]
|
||||
macros = ["tokio-macros"]
|
||||
net = ["dns", "tcp", "udp", "uds"]
|
||||
process = [
|
||||
"io-driver",
|
||||
|
||||
+11
-9
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user