Skip to content

chore!: hugr-rs v0.20.0 release #2083

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

Merged
merged 21 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8ab1b5d
feat!: Allow generic Nodes in HugrMut insert operations (#2075)
aborgna-q Apr 15, 2025
7d9c650
fix!: Don't expose `HugrMutInternals` (#2071)
aborgna-q Apr 15, 2025
4818a02
feat!: Mark all Error enums as non_exhaustive (#2056)
aborgna-q Apr 15, 2025
d4747ce
feat!: Handle CallIndirect in Dataflow Analysis (#2059)
acl-cqc Apr 16, 2025
7e0444d
feat: Make NodeHandle generic (#2092)
aborgna-q Apr 16, 2025
70881b7
feat!: remove ExtensionValue (#2093)
ss2165 Apr 17, 2025
1121fb0
feat!: ComposablePass trait allowing sequencing and validation (#1895)
acl-cqc Apr 22, 2025
4660a11
feat!: ReplaceTypes: allow lowering ops into a Call to a function alr…
acl-cqc Apr 23, 2025
a6c5254
feat!: Hugrmut on generic nodes (#2111)
aborgna-q Apr 23, 2025
2e32c58
feat!: Removed model_unstable feature flag (#2120)
aborgna-q Apr 28, 2025
fd522c7
feat!: Remove `RootTagged` from the hugr view trait hierarchy (#2122)
aborgna-q Apr 28, 2025
4c9cce3
feat!: Split Rewrite trait into VerifyPatch and ApplyPatch (#2070)
lmondada Apr 29, 2025
ca302d6
feat!: Bump MSRV to 1.85 (#2136)
aborgna-q Apr 29, 2025
320b81e
feat!: Cleanup core trait definitions (#2126)
aborgna-q Apr 29, 2025
2b8686b
chore: Remove stray rewrite.rs file (#2142)
lmondada Apr 29, 2025
3d82a1b
chore(hugr-llvm): upgrade to inkwell 0.6.0 (#2128)
qartik Apr 30, 2025
cd7ef68
feat!: Removed runtime extension sets. (#2145)
zrho May 1, 2025
614e43a
feat!: Accept outgoing ports in SimpleReplacement nu_out (#2151)
lmondada May 6, 2025
1bc91c1
feat!: Improved array lowering (#2109)
mark-koch May 6, 2025
8c42998
feat: export mangle name function (#2152)
ss2165 May 6, 2025
9cd24ff
feat!: Make `NamedOp` private. Add `MakeExtensionOp::name` and `MakeO…
doug-q May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 25 additions & 28 deletions .github/workflows/ci-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
pull_request:
branches:
- '**'
- "**"
merge_group:
types: [checks_requested]
workflow_dispatch: {}
Expand All @@ -25,7 +25,6 @@ env:
LLVM_VERSION: "14.0"
LLVM_FEATURE_NAME: "14-0"


jobs:
# Check if changes were made to the relevant files.
# Always returns true if running on the default branch, to ensure all changes are thoroughly checked.
Expand All @@ -43,25 +42,25 @@ jobs:
model: ${{ steps.filter.outputs.model == 'true' || steps.override.outputs.out == 'true' }}
llvm: ${{ steps.filter.outputs.llvm == 'true' || steps.override.outputs.out == 'true' }}
steps:
- uses: actions/checkout@v4
- name: Override label
id: override
run: |
echo "Label contains run-ci-checks: $OVERRIDE_LABEL"
if [ "$OVERRIDE_LABEL" == "true" ]; then
echo "Overriding due to label 'run-ci-checks'"
echo "out=true" >> $GITHUB_OUTPUT
elif [ "$DEFAULT_BRANCH" == "true" ]; then
echo "Overriding due to running on the default branch"
echo "out=true" >> $GITHUB_OUTPUT
fi
env:
OVERRIDE_LABEL: ${{ github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'run-ci-checks') }}
DEFAULT_BRANCH: ${{ github.ref_name == github.event.repository.default_branch }}
- uses: dorny/paths-filter@v3
id: filter
with:
filters: .github/change-filters.yml
- uses: actions/checkout@v4
- name: Override label
id: override
run: |
echo "Label contains run-ci-checks: $OVERRIDE_LABEL"
if [ "$OVERRIDE_LABEL" == "true" ]; then
echo "Overriding due to label 'run-ci-checks'"
echo "out=true" >> $GITHUB_OUTPUT
elif [ "$DEFAULT_BRANCH" == "true" ]; then
echo "Overriding due to running on the default branch"
echo "out=true" >> $GITHUB_OUTPUT
fi
env:
OVERRIDE_LABEL: ${{ github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'run-ci-checks') }}
DEFAULT_BRANCH: ${{ github.ref_name == github.event.repository.default_branch }}
- uses: dorny/paths-filter@v3
id: filter
with:
filters: .github/change-filters.yml

check:
needs: changes
Expand Down Expand Up @@ -109,7 +108,7 @@ jobs:
- name: Override criterion with the CodSpeed harness
run: cargo add --dev codspeed-criterion-compat --rename criterion --package hugr
- name: Build benchmarks
run: cargo codspeed build --profile bench --features extension_inference,declarative,model_unstable,llvm,llvm-test
run: cargo codspeed build --profile bench --features declarative,llvm,llvm-test
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
Expand Down Expand Up @@ -234,7 +233,7 @@ jobs:
id: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.75"
toolchain: "1.85"
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -253,12 +252,10 @@ jobs:
cargo binstall cargo-minimal-versions --force
- name: Pin transitive dependencies not compatible with our MSRV
# Add new dependencies as needed if the check fails due to
# "package `XXX` cannot be built because it requires rustc YYY or newer, while the currently active rustc version is 1.75.0"
# "package `XXX` cannot be built because it requires rustc YYY or newer, while the currently active rustc version is 1.85.0"
run: |
rm Cargo.lock
cargo add -p hugr [email protected]
cargo add -p hugr [email protected]
cargo add -p hugr [email protected]
# rm Cargo.lock
# cargo add -p hugr [email protected]
- name: Build with no features
run: cargo minimal-versions --direct test --verbose --no-default-features --no-run
- name: Tests with no features
Expand Down
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ repos:
# built into a binary build (without using `maturin`)
#
# This feature list should be kept in sync with the `hugr-py/pyproject.toml`
entry: cargo test --workspace --exclude 'hugr-py' --features 'hugr/extension_inference hugr/declarative hugr/model_unstable hugr/llvm hugr/llvm-test hugr/zstd'
entry: cargo test --workspace --exclude 'hugr-py' --features 'hugr/declarative hugr/llvm hugr/llvm-test hugr/zstd'
language: system
files: \.rs$
pass_filenames: false
Expand All @@ -100,10 +100,7 @@ repos:
- id: py-test
name: pytest
description: Run python tests
# We need to rebuild `hugr-cli` without the `extension_inference` feature
# to avoid test errors.
# TODO: Remove this once the issue is fixed.
entry: sh -c "cargo build -p hugr-cli && uv run pytest"
entry: sh -c "uv run pytest"
language: system
files: \.py$
pass_filenames: false
105 changes: 39 additions & 66 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading