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

chore: release v0.3.0 #840

Closed
wants to merge 1 commit into from
Closed

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 20, 2024

🤖 New release

  • quantinuum-hugr: 0.2.0 -> 0.3.0 (⚠️ API breaking changes)

⚠️ quantinuum-hugr breaking changes

--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field Conditional.sum_rows in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/controlflow.rs:59
  field Conditional.sum_rows in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/controlflow.rs:59
  field DataflowBlock.sum_rows in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/controlflow.rs:120
  field DataflowBlock.sum_rows in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/controlflow.rs:120

--- failure enum_marked_non_exhaustive: enum marked #[non_exhaustive] ---

Description:
A public enum has been marked #[non_exhaustive]. Pattern-matching on it outside of its crate must now include a wildcard pattern like `_`, or it will fail to compile.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#attr-adding-non-exhaustive
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/enum_marked_non_exhaustive.ron

Failed in:
  enum BuildError in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/builder.rs:128

--- failure enum_missing: pub enum removed or renamed ---

Description:
A publicly-visible enum cannot be imported by its prior path. A `pub use` may have been removed, or the enum itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/enum_missing.ron

Failed in:
  enum hugr::values::Value, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/values.rs:22

--- failure enum_struct_variant_field_added: pub enum struct variant field added ---

Description:
An enum's exhaustive struct variant has a new field, which has to be included when constructing or matching on this variant.
        ref: https://doc.rust-lang.org/reference/attributes/type_system.html#the-non_exhaustive-attribute
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/enum_struct_variant_field_added.ron

Failed in:
  field rows of variant SumType::General in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/types.rs:115

--- failure enum_struct_variant_field_missing: pub enum struct variant's field removed or renamed ---

Description:
A publicly-visible enum has a struct variant whose field is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/enum_struct_variant_field_missing.ron

Failed in:
  field row of variant SumType::General, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types.rs:112

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/enum_variant_added.ron

Failed in:
  variant ChildrenValidationError:InvalidConditionalSum in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/validate.rs:188
  variant ConstTypeError:SumType in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/constant.rs:93
  variant ConstTypeError:FunctionTypeMissing in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/constant.rs:99
  variant ConstTypeError:ConstCheckFail in /tmp/.tmpOiOAWC/hugr/quantinuum-hugr/src/ops/constant.rs:105

--- failure enum_variant_missing: pub enum variant removed or renamed ---

Description:
A publicly-visible enum has at least one variant that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/enum_variant_missing.ron

Failed in:
  variant BuildError::ConstructError, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/builder.rs:55
  variant BuildError::NoCopyLinear, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/builder.rs:77
  variant TypeEnum::Tuple, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types.rs:166
  variant HugrError::ConnectionError, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/hugr.rs:337
  variant HugrError::HierarchyError, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/hugr.rs:340
  variant HugrError::InvalidNode, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/hugr.rs:343
  variant HUGRSerializationError::HugrError, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/hugr/serialize.rs:85
  variant ChildrenValidationError::InvalidConditionalTupleSum, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/validate.rs:188
  variant ConstTypeError::ConstCantBeVar, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types/check.rs:33
  variant ConstTypeError::NoAliases, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types/check.rs:37
  variant ConstTypeError::TupleWrongLength, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types/check.rs:40
  variant ConstTypeError::InvalidSumTag, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types/check.rs:43
  variant ConstTypeError::ValueCheckFail, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types/check.rs:46
  variant RemoveError::RemoveFail, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/hugr/rewrite/consts.rs:29

--- failure function_missing: pub fn removed or renamed ---

Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/function_missing.ron

Failed in:
  function hugr::values::downcast_equal_consts, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/values.rs:173

--- failure inherent_method_missing: pub method removed or renamed ---

Description:
A publicly-visible method or associated fn is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/inherent_method_missing.ron

Failed in:
  Const::new, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:23
  Const::value, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:29
  Const::tuple_sum, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:40
  Const::new_tuple, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:83
  Const::new, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:23
  Const::value, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:29
  Const::tuple_sum, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:40
  Const::new_tuple, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/constant.rs:83
  Type::check_type, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types/check.rs:72
  Type::new_tuple_sum, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/types.rs:259

--- failure module_missing: pub module removed or renamed ---

Description:
A publicly-visible module cannot be imported by its prior path. A `pub use` may have been removed, or the module may have been renamed, removed, or made non-public.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/module_missing.ron

Failed in:
  mod hugr::values, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/values.rs:1

--- failure struct_missing: pub struct removed or renamed ---

Description:
A publicly-visible struct cannot be imported by its prior path. A `pub use` may have been removed, or the struct itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/struct_missing.ron

Failed in:
  struct hugr::values::CustomSerialized, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/values.rs:189

--- failure struct_pub_field_missing: pub struct's pub field removed or renamed ---

Description:
A publicly-visible struct has at least one public field that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/struct_pub_field_missing.ron

Failed in:
  field tuple_sum_rows of struct Conditional, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/controlflow.rs:60
  field tuple_sum_rows of struct Conditional, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/controlflow.rs:60
  field tuple_sum_rows of struct DataflowBlock, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/controlflow.rs:123
  field tuple_sum_rows of struct DataflowBlock, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/ops/controlflow.rs:123

--- failure trait_method_missing: pub trait method removed or renamed ---

Description:
A trait method is no longer callable, and may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#major-any-change-to-trait-item-signatures
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/trait_method_missing.ron

Failed in:
  method make_tag of trait Dataflow, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/builder/build_traits.rs:511
  method make_tuple_sum of trait Dataflow, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/builder/build_traits.rs:529

--- failure trait_missing: pub trait removed or renamed ---

Description:
A publicly-visible trait cannot be imported by its prior path. A `pub use` may have been removed, or the trait itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/trait_missing.ron

Failed in:
  trait hugr::values::CustomConst, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/values.rs:143
  trait hugr::values::CustomConstBoxClone, previously in file /tmp/.tmpGgsU4u/quantinuum-hugr/src/values.rs:185

--- failure trait_removed_associated_type: trait's associated type was removed ---

Description:
A public trait's associated type was removed or renamed.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.30.0/src/lints/trait_removed_associated_type.ron

Failed in:
  associated type Rewrite::InvalidationSet, previously at /tmp/.tmpGgsU4u/quantinuum-hugr/src/hugr/rewrite.rs:22
  associated type Rewrite::InvalidationSet, previously at /tmp/.tmpGgsU4u/quantinuum-hugr/src/hugr/rewrite.rs:22
Changelog

0.3.0 (2024-03-25)

Features

  • [breaking] Infallible HugrMut methods (#869)
  • Ancilla support in CircuitBuilder (#867)
  • CircuitBuilder::append_with_output_arr (#871)
  • [breaking] Make some Container methods infallible (#872)
  • [breaking] Cleaner error on wiring errors while building (#873)
  • [breaking] Change sums to be over TypeRows rather than Types (#863)
  • Make various data publicly accessible (#875)
  • [breaking] CustomConst is not restricted to being CustomType (#878)
  • [breaking] Return the type of FuncDecl in HugrView::get_function_type (#880)
  • [breaking] Merge Value into Const (#881)
  • Replace Tuple with unary sums (#891)

Performance

  • Add some simple benchmarks (#892)

Refactor

  • Extension Inference: make fewer things public, rm Meta::new (#883)
  • [breaking] Return impl trait in Rewrite trait (#889)


This PR was generated with release-plz.

@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch 2 times, most recently from 25de327 to 98a5220 Compare February 21, 2024 14:34
@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch 9 times, most recently from 074bab3 to a9a517b Compare March 6, 2024 13:00
@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch 3 times, most recently from 421fee7 to 57a391a Compare March 7, 2024 17:13
@github-actions github-actions bot changed the title chore: release v0.2.1 chore: release v0.3.0 Mar 8, 2024
@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch from 57a391a to ae0d2a7 Compare March 8, 2024 11:16
@aborgna-q
Copy link
Collaborator

#868 re-configured the changelog generation to be based on the new sub-crate instead of the full repo.

Annoyingly, this causes git-cliff to ignore the previous commits where the project was at the root of the repo.
Here is a copy from the last changelog commit before that change. We should re-add this before merging the release PR.

## 0.2.1 (2024-03-06)

### Documentation

- HUGR spec copyediting ([#843](https://github.com/CQCL/hugr/pull/843))
- Add builder module docs + example ([#853](https://github.com/CQCL/hugr/pull/853))
- Add note on serialized hugr node order ([#849](https://github.com/CQCL/hugr/pull/849))

### Features

- Arbitrary types in the yaml extension definition ([#839](https://github.com/CQCL/hugr/pull/839))
- Make all core types serializable ([#850](https://github.com/CQCL/hugr/pull/850))
- Don't include empty type args in Display ([#857](https://github.com/CQCL/hugr/pull/857))
- Mermaid renderer for hugrs ([#852](https://github.com/CQCL/hugr/pull/852))
- Add impl TryFrom<&OpType> for ops::* ([#856](https://github.com/CQCL/hugr/pull/856))

### Refactor

- Add `From` conversion from ExtensionId to ExtensionSet ([#855](https://github.com/CQCL/hugr/pull/855))
- Remove clone in `ExtensionSet::union` ([#859](https://github.com/CQCL/hugr/pull/859))

@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch 9 times, most recently from babc28e to f7c3893 Compare March 14, 2024 16:14
@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch 4 times, most recently from cd449b1 to 320a23e Compare March 19, 2024 11:34
@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch 5 times, most recently from add1e56 to 20a0c95 Compare March 25, 2024 13:58
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot force-pushed the release-plz-2024-02-20T16-39-46Z branch from 20a0c95 to 50bcd93 Compare March 25, 2024 15:58
@github-actions github-actions bot closed this Mar 26, 2024
github-merge-queue bot pushed a commit that referenced this pull request Apr 4, 2024
With the rename of the crate from `hugr_quantinuum` to `hugr` (#914) we
broke `release-plz`' automatic changelog generation (since it cannot
find the crate anymore), and all links to crate-related urls.

This alpha release should fix those issues, in addition to letting us
claim the new crate name.

I added the partial changelog bits from #898, #893, and #840 since they
won't be included in the new package's PRs.

drive-by: Move CHANGELOG and README from the root to the `hugr` dir to
be more consistent with other packages in the workspace, and symlink
them instead.
@aborgna-q aborgna-q deleted the release-plz-2024-02-20T16-39-46Z branch June 6, 2024 14:38
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.

1 participant