-
Couldn't load subscription status.
- Fork 2.7k
Description
Describe the problem you are trying to solve
Have a version of cargo and rustc compiled to wasm32-wasi (or some other wasm arch) such that they can securely/reproducably be run cross-platform/cross-arch even if compiling malicious code.
Describe the solution you'd like
Maybe this can be done by having an alternate host ABI that includes posix_spawn as one of the provided functions? Maybe cargo could be changed to add a configure option to not require pthread_create or equivalent?
Notes
WASI doesn't currently have create_thread or posix_spawn functions iirc...posix_spawn is much easier to implement.
iirc someone got rustc to work with wasm as the host arch, I wasn't able to find it again when I looked later.