mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
rt: simplify rt-* features (#2949)
tokio:
merge rt-core and rt-util as rt
rename rt-threaded to rt-multi-thread
tokio-util:
rename rt-core to rt
Closes #2942
This commit is contained in:
@@ -40,11 +40,11 @@ macro_rules! cfg_io {
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! cfg_rt_core {
|
||||
macro_rules! cfg_rt {
|
||||
($($item:item)*) => {
|
||||
$(
|
||||
#[cfg(feature = "rt-core")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "rt-core")))]
|
||||
#[cfg(feature = "rt")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "rt")))]
|
||||
$item
|
||||
)*
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ cfg_io! {
|
||||
pub mod io;
|
||||
}
|
||||
|
||||
cfg_rt_core! {
|
||||
cfg_rt! {
|
||||
pub mod context;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user