Rust has had to implement limits on recursion already as part of async. It seems feasible to extend this to other code. And local allocators are also being worked on.
Re:Some Thoughts on Zig
by Schroedingersat on Friday July 22, 2022 @04:46AM
(#32189939)
That's cool. Linky to discussions? I can't seem to search it.
The guarantees that zig seeks to enable (this being the key phrase, it does not guarantee them just by its use, nor has the project solved all the problems this entails) the programmer to provide are non-goals of rust.
Ie. the projects have completely different goals. The things zig want to provide would make rust unusable if it tried to provide them and vice versa.