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: bring back input_extensions serialized field in rust NodeSer #1275

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

ss2165
Copy link
Member

@ss2165 ss2165 commented Jul 8, 2024

(skip serializing, deserialize to None)

Closes #1270

ss2165 added 2 commits July 8, 2024 12:27
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()`
(skip serializing, deserialize to None)

non-breaking patch for #1270
@@ -51,7 +51,7 @@ pub struct Hugr {

impl Default for Hugr {
fn default() -> Self {
Self::new(crate::ops::Module)
Self::new(crate::ops::Module::new())
Copy link
Member Author

Choose a reason for hiding this comment

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

kept this from the other PR, can remove but is harmless

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.

Thanks!

@ss2165 ss2165 added this pull request to the merge queue Jul 8, 2024
Merged via the queue into main with commit bbff0c9 Jul 8, 2024
18 checks passed
@ss2165 ss2165 deleted the ss/fix-ser-patch branch July 8, 2024 12:56
@hugrbot hugrbot mentioned this pull request Jul 8, 2024
aborgna-q pushed a commit that referenced this pull request Jul 8, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 8, 2024
This PR includes the changes in the hotfix release of `hugr 0.6.1` and
`hugr-core 0.3.1`.
The release cherry picked the fixes from #1263 and #1275.

---------

Co-authored-by: Seyon Sivarajah <seyon.sivarajah@quantinuum.com>
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