-
Notifications
You must be signed in to change notification settings - Fork 95
Replace xz2 dependency by liblzma enabling WebAssembly WASI targets #326
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
Conversation
liblzma is a drop-in replacement for xz2. It uses a new liblzma version and supports targeting WebAssembly.
This is required for "cargo build --lib" to not activate Tokio features from dev-dependencies. Otherwise, the build fails on WebAssembly.
The test failure seems to be unrelated. |
Hello it should be fixed on develop, rebasing should fix it |
Should be fixed now. I accidentally "refactored" a test artifact. |
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.
Thank you!
Just some changes requested for features
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.
Thank you, LGTM, cc @robjtede can you take a look at this please?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #326 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. |
liblzma is a drop-in replacement for xz2. It supports building to wasm32-wasip1-* targets.
In addition the Cargo resolver is switched to version 2, to prevent feature flags from dev-dependencies to leak into a
cargo build --lib
invocation. This is necessary to ensure that no Tokio-features that are unsupported on WebAssembly are enabled.A CI build targeting wasm32-wasip1-threads is added.