Re:When rustc explodes
by est31 on Saturday July 16, 2022 @03:31AM
(#32115976)
Yeah you'd have the same issue if you ran the expensive computation in Javascript. What you need is worker threads, and yes, you can't share objects with worker threads easily.
Rust can't magically create parallelism (this is not even an concurrency thing which is what async provides) where there is none.