Earlier quoted context omitted.
I wonder if it would work from Rust. I was looking at something minimal like this.
I haven't used it at all, but doesn't Rust have experimental support for coroutines? https://github.com/rust-lang/rust/issues/43122
Rust actually had stackless coroutines in the past (libgreen), but moved from it due to the overhead it brought for code that didn’t require it.