-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(runtime): Add support for wasm32-wasip2 compilation target
#4058
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Aditya <[email protected]>
…time adjustments Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
|
You're welcome to continue experimenting with this, but there's no point in merging this until it's stabilized as a target for |
Totally fair, I understand it’s still experimental. The WASI Preview 3 target (wasm32-wasip3) is expected to land in the next Rust release or just after that (most probably), but for now I’m using wasm32-wasip2 as the dev target to keep things working. It’s mostly exploratory right now, but it does feel like something that’ll be quite useful once stabilized. |
|
@abonander Would it be alright to keep this PR open as a reference while I continue experimenting, or would you prefer I link to my fork in the relevant issue and close this PR to keep the list clean? |
Signed-off-by: Aditya <[email protected]>
… works, runtime fails at handshake Signed-off-by: Aditya <[email protected]>
4afcb31 to
e25f19f
Compare
…mutex lock issue Signed-off-by: Aditya <[email protected]>
e25f19f to
a71af8a
Compare
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
wasm32-wasip3 compilation target.]wasm32-wasip2 compilation target
Signed-off-by: Aditya <[email protected]>
Does your PR solve an issue?
closes #4056
Is this a breaking change?
No, New runtime would run separately, conditional compilation ensures that.
Limitations
This PR adds wasm32 target support for non-TLS backends only (for now since wasi-tls is in phase 1). Some stubs are intentionally left open for further development such as
sqlx-core/src/wasm/fs.rsto support future wasi-native file system certificate actions.