Skip to content
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: Do not require capnp to be installed to compile hugr-model #1907

Merged
merged 5 commits into from
Feb 5, 2025

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Feb 4, 2025

Now we do the same as with the schema and extensions definition; provide a just command to update it manually and check on CI that things are up-to-date.

This lets us remove the build.rs from hugr-model, removing the need for users to have capnproto installed to compile our crates.

Closes #1667

@aborgna-q aborgna-q requested a review from zrho February 4, 2025 17:37
@aborgna-q aborgna-q requested a review from a team as a code owner February 4, 2025 17:37
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.77%. Comparing base (2630e3d) to head (f80788d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1907      +/-   ##
==========================================
- Coverage   86.70%   83.77%   -2.93%     
==========================================
  Files         195      196       +1     
  Lines       35538    37380    +1842     
  Branches    32351    34193    +1842     
==========================================
+ Hits        30814    31316     +502     
- Misses       2951     4287    +1336     
- Partials     1773     1777       +4     
Flag Coverage Δ
python 92.34% <ø> (ø)
rust 82.97% <ø> (-3.18%) ⬇️

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.

Copy link
Contributor

@zrho zrho left a comment

Choose a reason for hiding this comment

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

LGTM

@aborgna-q aborgna-q added this pull request to the merge queue Feb 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 5, 2025
@aborgna-q
Copy link
Collaborator Author

I tried to merge this without rebasing #1893 and the merge queue check failed due to not updating the generated artifact :)

@aborgna-q aborgna-q added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit 4054d80 Feb 5, 2025
24 checks passed
@aborgna-q aborgna-q deleted the ab/offline-capnp branch February 5, 2025 10:30
@hugrbot hugrbot mentioned this pull request Feb 5, 2025
@hugrbot hugrbot mentioned this pull request Feb 5, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 5, 2025
## 🤖 New release

* `hugr`: 0.14.3
* `hugr-core`: 0.14.3
* `hugr-model`: 0.17.1
* `hugr-llvm`: 0.14.3
* `hugr-passes`: 0.14.3
* `hugr-cli`: 0.14.3

<details><summary><i><b>Changelog</b></i></summary><p>

## `hugr`

<blockquote>

##
[0.14.3](hugr-v0.14.2...hugr-v0.14.3)
- 2025-02-05

### Bug Fixes

- Export `RemoveDeadFuncsError` (#1883)
- const-folding Module keeps at least "main" (#1901)
- determine correct bounds of custom types (#1888)
- Exporting converging control flow edges (#1890)

### Documentation

- Fix deprecation warning messages (#1891)
- Explain why `ConstF64` is not PartialEq (#1829)

### New Features

- Special cased array, float and int constants in hugr-model export
(#1857)
- Simplify hugr-model (#1893)
</blockquote>

## `hugr-core`

<blockquote>

##
[0.14.3](hugr-core-v0.14.2...hugr-core-v0.14.3)
- 2025-02-05

### Bug Fixes

- determine correct bounds of custom types (#1888)
- Exporting converging control flow edges (#1890)

### Documentation

- Explain why `ConstF64` is not PartialEq (#1829)

### New Features

- Special cased array, float and int constants in hugr-model export
(#1857)
- Simplify hugr-model (#1893)
</blockquote>

## `hugr-model`

<blockquote>

##
[0.17.1](hugr-model-v0.17.0...hugr-model-v0.17.1)
- 2025-02-05

### Bug Fixes

- determine correct bounds of custom types (#1888)

### New Features

- Special cased array, float and int constants in hugr-model export
(#1857)
- Simplify hugr-model (#1893)
- Do not require `capnp` to be installed to compile `hugr-model` (#1907)
</blockquote>

## `hugr-llvm`

<blockquote>

##
[0.14.2](hugr-llvm-v0.14.1...hugr-llvm-v0.14.2)
- 2025-01-20

### New Features

- *(hugr-llvm)* Emit more int ops (#1835)
- Constant values in `hugr-model` (#1838)
- *(hugr-llvm)* Emit ipow (#1839)

### Refactor

- *(hugr-llvm)* [**breaking**] Optimise the llvm types used to represent
hugr sums. (#1855)

### Testing

- Fix failing inot test (#1841)
</blockquote>

## `hugr-passes`

<blockquote>

##
[0.14.3](hugr-passes-v0.14.2...hugr-passes-v0.14.3)
- 2025-02-05

### Bug Fixes

- Export `RemoveDeadFuncsError` (#1883)
- const-folding Module keeps at least "main" (#1901)

### Documentation

- Fix deprecation warning messages (#1891)
</blockquote>

## `hugr-cli`

<blockquote>

##
[0.14.1](hugr-cli-v0.14.0...hugr-cli-v0.14.1)
- 2024-12-18

### New Features

- Print `hugr-cli`'s correct version when using '--version' (#1790)
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

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.

(model): standalone py/rust packages for capnproto generated code
2 participants