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

fix!: ops::Module now empty struct rather than unit struct #1271

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

ss2165
Copy link
Member

@ss2165 ss2165 commented Jul 8, 2024

Fixes #1270 without keeping the unused input_extensions field.

BREAKING CHANGE: ops::Module no longer unit struct, must be constructed with new() or default()

@ss2165 ss2165 requested a review from aborgna-q July 8, 2024 11:28
@ss2165 ss2165 requested a review from a team as a code owner July 8, 2024 11:28
Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.09%. Comparing base (bbff0c9) to head (59201d5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1271      +/-   ##
==========================================
- Coverage   87.10%   87.09%   -0.01%     
==========================================
  Files         103      103              
  Lines       19327    19322       -5     
  Branches    17179    17174       -5     
==========================================
- Hits        16834    16829       -5     
  Misses       1715     1715              
  Partials      778      778              
Flag Coverage Δ
rust 86.57% <100.00%> (-0.01%) ⬇️

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.

@ss2165
Copy link
Member Author

ss2165 commented Jul 8, 2024

Converting to draft in case there is some alternative fix for: serde-rs/serde#2775

Non-breaking fix in #1275

@ss2165 ss2165 marked this pull request as draft July 8, 2024 12:51
@ss2165 ss2165 removed the request for review from aborgna-q July 8, 2024 12:51
Fixes #1270

A simpler test json might be better but kept the original just to show it is fixed.

BREAKING CHANGE: `ops::Module` no longer unit struct, must be constructed with `new()` or `default()`
Copy link
Collaborator

@aborgna-q aborgna-q left a comment

Choose a reason for hiding this comment

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

The non-breaking patch is now published, we can merge this.

@ss2165 ss2165 marked this pull request as ready for review July 8, 2024 14:18
@ss2165 ss2165 added this pull request to the merge queue Jul 8, 2024
Merged via the queue into main with commit 8ccd3aa Jul 8, 2024
22 checks passed
@ss2165 ss2165 deleted the ss/fix-ser branch July 8, 2024 14:21
@hugrbot hugrbot mentioned this pull request Jul 8, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 10, 2024
## 🤖 New release
* `hugr`: 0.6.1 -> 0.7.0
* `hugr-core`: 0.3.1 -> 0.4.0
* `hugr-passes`: 0.3.0 -> 0.4.0
* `hugr-cli`: 0.1.2 -> 0.1.3

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

## `hugr`
<blockquote>

## 0.7.0 (2024-07-10)

### Bug Fixes

- Bring back input_extensions serialized field in rust NodeSer
([#1275](#1275))
- [**breaking**] `ops::Module` now empty struct rather than unit struct
([#1271](#1271))

### Features

- Add `force_order` pass.
([#1285](#1285))
- [**breaking**] `MakeOpDef` has new `extension` method.
([#1266](#1266))

### Refactor

- [**breaking**] Remove `Value::Tuple`
([#1255](#1255))
- [**breaking**] Rename `HugrView` function type methods + simplify
behaviour ([#1265](#1265))

### Styling

- Change "serialise" etc to "serialize" etc.
([#1251](#1251))

### Testing

- Add a test for [#1257](#1257)
([#1260](#1260))
</blockquote>

## `hugr-core`
<blockquote>

## 0.4.0 (2024-07-10)

### Bug Fixes

- Bring back input_extensions serialized field in rust NodeSer
([#1275](#1275))
- [**breaking**] `ops::Module` now empty struct rather than unit struct
([#1271](#1271))

### Features

- [**breaking**] `MakeOpDef` has new `extension` method.
([#1266](#1266))

### Refactor

- [**breaking**] Remove `Value::Tuple`
([#1255](#1255))
- [**breaking**] Rename `HugrView` function type methods + simplify
behaviour ([#1265](#1265))

### Styling

- Change "serialise" etc to "serialize" etc.
([#1251](#1251))

### Testing

- Add a test for [#1257](#1257)
([#1260](#1260))
</blockquote>

## `hugr-passes`
<blockquote>

## 0.4.0 (2024-07-10)

### Features

- Add `force_order` pass.
([#1285](#1285))

### Refactor

- [**breaking**] Remove `Value::Tuple`
([#1255](#1255))
</blockquote>

## `hugr-cli`
<blockquote>

## 0.1.3 (2024-07-10)

### Styling

- Change "serialise" etc to "serialize" etc.
([#1251](#1251))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
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.

Serialisation regression in #1183
2 participants