Skip to content

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

Merged
merged 7 commits into from
Feb 28, 2025

Conversation

surban
Copy link
Contributor

@surban surban commented Feb 23, 2025

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.

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.
@surban
Copy link
Contributor Author

surban commented Feb 23, 2025

The test failure seems to be unrelated.

@NobodyXu
Copy link
Collaborator

Hello it should be fixed on develop, rebasing should fix it

@surban
Copy link
Contributor Author

surban commented Feb 27, 2025

Should be fixed now. I accidentally "refactored" a test artifact.

Copy link
Collaborator

@NobodyXu NobodyXu left a 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

@surban surban requested a review from NobodyXu February 27, 2025 22:34
Copy link
Collaborator

@NobodyXu NobodyXu left a 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?

@robjtede robjtede added this pull request to the merge queue Feb 28, 2025
Merged via the queue into Nullus157:main with commit 77893f9 Feb 28, 2025
17 checks passed
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (bc4eccd) to head (04b854e).
Report is 8 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #326   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@robjtede robjtede added the A-semver-minor non-breaking change label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-semver-minor non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants