You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Thanks for the report, but Cargo fundamentally, as you've seen, spawns subprocesses which isn't supported with WASI yet. Furthermore Cargo does a lot of network traffic and pipe managment with subprocesses, so WASI has a bit of aways to go I think before it can support Cargo.
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.
The text was updated successfully, but these errors were encountered: