Skip to content

feat: Replace pyzstd dependency with rust bindings#2846

Merged
aborgna-q merged 1 commit intomainfrom
ab/zstd-rs
Feb 2, 2026
Merged

feat: Replace pyzstd dependency with rust bindings#2846
aborgna-q merged 1 commit intomainfrom
ab/zstd-rs

Conversation

@aborgna-q
Copy link
Copy Markdown
Collaborator

@aborgna-q aborgna-q commented Feb 2, 2026

#2845 adds a WASM target for hugr-py wheels, but the pyzstd dependency is not supported by pyodide.

This PR removes the python dependency, exposing instead a binding to the rust zstd denpency.

Closes #2039

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.73%. Comparing base (2c7ab3d) to head (8a8f960).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2846      +/-   ##
==========================================
- Coverage   83.73%   83.73%   -0.01%     
==========================================
  Files         264      264              
  Lines       53101    53101              
  Branches    47374    47374              
==========================================
- Hits        44465    44462       -3     
- Misses       6247     6250       +3     
  Partials     2389     2389              
Flag Coverage Δ
python 88.58% <100.00%> (-0.06%) ⬇️
rust 83.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aborgna-q aborgna-q marked this pull request as ready for review February 2, 2026 12:08
@aborgna-q aborgna-q requested a review from a team as a code owner February 2, 2026 12:08
@aborgna-q aborgna-q requested a review from doug-q February 2, 2026 12:08
msg = "Only ascii-printable envelope formats can be encoded into a string."
raise ValueError(msg)
envelope = make_envelope(package, config)
envelope = _make_envelope(package, config)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by, to remove a deprecation warning

@aborgna-q aborgna-q requested review from cqc-alec and removed request for doug-q February 2, 2026 13:56
@aborgna-q aborgna-q added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit 5047c81 Feb 2, 2026
30 checks passed
@aborgna-q aborgna-q deleted the ab/zstd-rs branch February 2, 2026 16:30
cqc-alec pushed a commit that referenced this pull request Feb 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.15.2](hugr-py-v0.15.1...hugr-py-v0.15.2)
(2026-02-06)


### Features

* Add ptr extension and cleanup `hugr.std` module
([#2842](#2842))
([0871b82](0871b82))
* Add s expression format to envelope formats
([#2864](#2864))
([2da5e8e](2da5e8e))
* Auto-embed extensions in stored hugrs
([#2843](#2843))
([36408d4](36408d4))
* Replace pyzstd dependency with rust bindings
([#2846](#2846))
([5047c81](5047c81))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Agustín Borgna <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove python zstd dependency from hugr-py, do it in rust

3 participants