3 ms·
Rust never implicitly allocates, even with async/await. I have written Rust programs on a microcontroller with no heap, using async/await for it.
by steveklabnik 6y ago
Rust never implicitly allocates, even with async/await. I have written Rust programs on a microcontroller with no heap, using async/await for it.
- mratsim 6y agoI don't think I've implied that allocation in Rust was implicit but that's a fair point.
- steveklabnik 6y agoYou said > Rust will allocate once for the whole series which, it will not. It is true that some executors will do a single allocation for the whole series, but that is not done by Rust, nor is required. That's all!