Skip to content

chore: release v0.21.0 #2271

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

Closed
wants to merge 2 commits into from
Closed

Conversation

hugrbot
Copy link
Collaborator

@hugrbot hugrbot commented May 29, 2025

🤖 New release

  • hugr-model: 0.20.0 -> 0.21.0
  • hugr-core: 0.20.0 -> 0.21.0 (⚠ API breaking changes)
  • hugr-llvm: 0.20.0 -> 0.21.0 (✓ API compatible changes)
  • hugr-passes: 0.20.0 -> 0.21.0
  • hugr: 0.20.0 -> 0.21.0 (✓ API compatible changes)
  • hugr-cli: 0.20.0 -> 0.21.0

hugr-core breaking changes

--- 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.41.0/src/lints/enum_missing.ron

Failed in:
  enum hugr_core::import::OrderHintError, previously in file /tmp/.tmpKmCjWg/hugr-core/src/import.rs:82
  enum hugr_core::import::ImportError, previously in file /tmp/.tmpKmCjWg/hugr-core/src/import.rs:39
Changelog

hugr-model

0.20.0 - 2025-05-14

New Features

  • [breaking] Mark all Error enums as non_exhaustive (#2056)
  • [breaking] Bump MSRV to 1.85 (#2136)
  • Export and import entrypoints via metadata in hugr-model. (#2172)
  • Define text-model envelope formats (#2188)
  • Import CFG regions without adding an entry block. (#2200)
  • Symbol applications can leave out prefixes of wildcards. (#2201)

hugr-core

0.21.0 - 2025-05-29

Bug Fixes

  • check well-definedness of DFG wires in validate (#2221)
  • Check for order edges in SiblingSubgraph::from_node (#2223)
  • Make SumType::Unit(N) equal to SumType::General([(); N]) (#2250)

New Features

  • Add PersistentHugr (#2080)
  • Add Type::used_extensions (#2224)
  • Add boundary edge traversal in SimpleReplacement (#2231)
  • Add signature map function for DFGs (#2239)
  • PersistentHugr implements HugrView (#2202)
  • PersistentHugr Walker API (#2168)
  • More helpful error messages in model import (#2264)

Refactor

  • tidies/readability improvements to PersistentHugr (#2251)

Testing

  • Ignore miri errors in tests involving assert_snapshot (#2261)

hugr-llvm

0.21.0 - 2025-05-29

Bug Fixes

  • Make SumType::Unit(N) equal to SumType::General([(); N]) (#2250)

New Features

  • More helpful error messages in model import (#2264)

Testing

  • Add exec tests for widen op (#2043)

hugr-passes

0.20.0 - 2025-05-14

New Features

  • [breaking] Mark all Error enums as non_exhaustive (#2056)
  • [breaking] Handle CallIndirect in Dataflow Analysis (#2059)
  • [breaking] ComposablePass trait allowing sequencing and validation (#1895)
  • [breaking] ReplaceTypes: allow lowering ops into a Call to a function already in the Hugr (#2094)
  • [breaking] Hugrmut on generic nodes (#2111)
  • [breaking] Remove RootTagged from the hugr view trait hierarchy (#2122)
  • [breaking] Split Rewrite trait into VerifyPatch and ApplyPatch (#2070)
  • [breaking] Bump MSRV to 1.85 (#2136)
  • [breaking] Cleanup core trait definitions (#2126)
  • [breaking] Removed runtime extension sets. (#2145)
  • [breaking] Improved array lowering (#2109)
  • export mangle name function (#2152)
  • [breaking] Make NamedOp private. Add MakeExtensionOp::name and MakeOpDef::opdef_name (#2138)
  • [breaking] Add Hugr entrypoints (#2147)
  • [breaking] Return a node mapping in HugrInternals::region_portgraph (#2164)
  • [breaking] Validate any HugrView, make errors generic (#2155)
  • [breaking] Explicit hugr type param to ComposablePass (#2179)
  • [breaking] Hide FuncDefn/cl fields, add accessors and ::new(...) (#2213)

Refactor

  • [breaking] Removed global portgraph-related methods from HugrInternals (#2180)

hugr

0.21.0 - 2025-05-29

Bug Fixes

  • check well-definedness of DFG wires in validate (#2221)
  • Check for order edges in SiblingSubgraph::from_node (#2223)
  • Make SumType::Unit(N) equal to SumType::General([(); N]) (#2250)

New Features

  • Add PersistentHugr (#2080)
  • Add Type::used_extensions (#2224)
  • Add boundary edge traversal in SimpleReplacement (#2231)
  • Add signature map function for DFGs (#2239)
  • PersistentHugr implements HugrView (#2202)
  • PersistentHugr Walker API (#2168)
  • More helpful error messages in model import (#2264)

Refactor

  • tidies/readability improvements to PersistentHugr (#2251)

Testing

  • Ignore miri errors in tests involving assert_snapshot (#2261)

hugr-cli

0.20.0 - 2025-05-14

New Features

  • [breaking] Bump MSRV to 1.85 (#2136)
  • [breaking] Add Hugr entrypoints (#2147)
  • [breaking] Validate any HugrView, make errors generic (#2155)
  • [breaking] Only expose envelope serialization of hugrs and packages (#2167)
  • Packages do not include the hugr extensions by default (#2187)


This PR was generated with release-plz.

zrho and others added 2 commits May 29, 2025 13:42
This PR adds more helpful error messages to model import to help debug
errors that may occur during the migration to `hugr-model` as the
default serialisation format (see #2260). The errors are still far from
ideal, but should already provide a significant improvement. We hide the
internals of `ImportError` in order to allow for the error messages to
improve without incurring breaking changes. This PR also implements a
remaining `todo!()` concerning importing tuple types.
@hugrbot hugrbot added the release Release PR label May 29, 2025
@ss2165
Copy link
Member

ss2165 commented May 29, 2025

TODO: the breaking change to model errors in #2264 are not enough to require a breaking bump, attempt to do a non-breaking 0.20.1 release

Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 39.90066% with 363 lines in your changes missing coverage. Please review.

Project coverage is 81.99%. Comparing base (157c44e) to head (f395921).

Files with missing lines Patch % Lines
hugr-core/src/import.rs 39.90% 242 Missing and 121 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2271      +/-   ##
==========================================
- Coverage   82.16%   81.99%   -0.17%     
==========================================
  Files         239      239              
  Lines       42989    43158     +169     
  Branches    38901    39070     +169     
==========================================
+ Hits        35320    35386      +66     
- Misses       5678     5769      +91     
- Partials     1991     2003      +12     
Flag Coverage Δ
python 85.34% <ø> (ø)
rust 81.64% <39.90%> (-0.19%) ⬇️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Release PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants