-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: Wasm32 wasi 0.41.0 #888
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #888 +/- ##
==========================================
+ Coverage 78.91% 78.94% +0.02%
==========================================
Files 147 147
Lines 34827 34845 +18
==========================================
+ Hits 27485 27507 +22
+ Misses 7342 7338 -4 ☔ View full report in Codecov by Sentry. |
aadf8d7
to
806b867
Compare
3273bdc
to
21141b2
Compare
How does this work for crypto? Does it use the new rust native path that we have for wasm? |
Yes. Removing WebCrypto made that very straightforward. |
Does this code rely on the fact that the wasm target will bring in rust_native crypto? If so would it be better to just have a wasi target instead of a side effect. Otherwise this could be easily broken without someone knowing they are affecting wasi. |
dccba31
to
066a7a8
Compare
The wasm32 target_arch covers all targets of that architecture, including wasm32-wasi. That target_arch is used intentionally . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with comments
- wasip2 will require +nightly until rust-lang/rust#130323 is resolved and/or std::os::wasip2 is available in stable. - Support was added to rustix for version 0.38.39 bytecodealliance/rustix#1205 - Support was added to tempfile for version 3.14 Stebalien/tempfile#305
Tests passing with WASI. CARGO_TARGET_WASM32_WASIP2_RUNNER="wasmtime -S common --dir ."
Tempfile is not supported in wasip1
e2cf2fb
to
e3082f7
Compare
e3082f7
to
3454987
Compare
Changes in this pull request
feat: Add wasi compatibility.
Related issues:
Tests passing with WASI.
CARGO_TARGET_WASM32_WASIP2_RUNNER="wasmtime -S common -S http --dir ."
Checklist
TO DO
items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.