Does Rust allow calling a function with a new stack?

This is perhaps a silly question, but does Rust have a macro (I am guessing it needs to be a macro) to call a function with a different stack?
I am looking for something similar to the @call builtin from Zig, where we can simply pass a pointer a new stack.
Admittedly, this macro will require unsafe to run, but that is fine by me.


Any idea if these are usable in a WASM module?

Unfortunately not. Per psm's

This library is not applicable to the target. WASM hasn’t a specified C ABI, the callstack is not even in an address space and does not appear to be manipulatable.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.