Rust 中的运行时是什么?

What is Runtime in Rust?

我读过一篇博客。它说 Rust 没有内置运行时。 我在那个博客里读到一句话:

A runtime of your choosing, such as Tokio, async_std, smol, etc.

那么 Rust 中的运行时是什么?

Rust 中没有“运行时”。

A​​ 运行时,在你的报价上下文中,是可以执行异步任务/期货(执行者)的东西,通常与同步实用程序捆绑在一起,IO,.. .: 虽然 Rust 标准库包含异步执行的构建块(一些特征和 asyncawait 关键字),但它没有提供创建、同步或执行异步任务的实际方法。