Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Runtime in Rust?

Tags:

rust

runtime

I've read a blog. It says Rust doesn't not have built-in runtime. And I read a sentence in that blog:

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

So what is the runtime in Rust?

like image 535
le vu quang Avatar asked Oct 20 '25 03:10

le vu quang


1 Answers

There is no "the runtime" in Rust.

A runtime, in the context of your quote, is something which can execute asynchronous tasks / futures (an executor), usually bundled with utilities for synchronisation, IO, ...: while the Rust standard library contains the building blocks for asynchronous execution (a few traits and the async and await keywords) it provides no actual way to create, synchronise, or execute asynchronous tasks.

like image 162
Masklinn Avatar answered Oct 22 '25 05:10

Masklinn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!