Can a function in Rust push arbitrary amount of data onto stack?
I think it's possible to do in asm, but for some reason I imagined that all functions in C++ and Rust take fixed amount of space in stack, not larger than amount sum of all local variables. However I have a function that doesn't use any recursion, but has a for loop that drains a channel and constructs Box for each(in detail: executes incoming vulkan command buffers by joining them to the main gpufuture and boxes it to discard the concrete type). If the main blocks for few seconds and messages accumulate in the channel, the function overflows. Setting channel size fixed the issue.
Please suggest a better title.