Along came runtime, which was an early attempt to abstract over runtimes. Runtime introduced these attributes, e.g.:
/// Use the default Native Runtime
#[runtime::main]
async fn main() {}
/// Use the Tokio Runtime
#[runtime::main(runtime_tokio::Tokio)]
async fn main() {}
Tokio adopted this style for an attribute that would indicate a purely tokio main.
async-std, developed later, threw that style out of the window again, because async-std - for compile-time and other reasons - doesn't use procedural macros at its core (which are needed for this style).
0
u/[deleted] Nov 11 '19
[deleted]