-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Can not build RustPython to wasm32-wasip2 #5704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
you will find |
It is. |
We usually don't have plans but cover more features step by step. |
To my knowledge it is not possible to support ssl for wasm, (barring some major shift in architecture) due to this: |
Well, I am not familiar with Rust(and RustPython). But in CPython, it is possible to add ssl support, check out wasmer/python . We can use pre-built openssl and link it to CPython. I am trying to find the same solution to RustPython, but due to my poor Rust knowledge, it's hard :( |
Thank you for the reference! We may can do similar way. One caveat. The linked |
Absolutely! I will continue trying to find the solution. If you have any other idea, I will keep paying attention :) |
Summary
I am trying to build RustPython into
.wasm
file which can run Python program with ssl as dependency. I found that wasm32-wasip2 supports std fully, which means it supports socket proposal that wasm32-wasip1 does not.But I failed.
Details
rustc version:
I also add
#![feature(wasip2)]
to the crate attributes and here is the diff:Then I run the command below:
It fails with the log:
What can I do to make it work? I need the feature ssl to enable python library
couchdb
andredis
.The text was updated successfully, but these errors were encountered: