3 ms·
So, you do need to include some code to drive the futures. The key is that this is a library in Rust, rather than built into the language, and so Rust programs
by steveklabnik 7y ago
So, you do need to include some code to drive the futures. The key is that this is a library in Rust, rather than built into the language, and so Rust programs that don't use async do not pay the cost.
And yeah, that's sort of how it works under the covers :)