From 85f1727f0403b6bbfafce29dea00e048c0f7b5ec Mon Sep 17 00:00:00 2001 From: hugrbot Date: Wed, 13 Nov 2024 15:49:53 +0000 Subject: [PATCH] chore: release v0.7.0 (#82) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 🤖 New release * `tket-json-rs`: 0.6.2 -> 0.7.0 (⚠️ API breaking changes) ### ⚠️ `tket-json-rs` breaking changes ``` --- 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.36.0/src/lints/enum_variant_missing.ron Failed in: variant ClassicalExpUnit::Register, previously in file /tmp/.tmpgK5lkw/tket-json-rs/src/circuit_json.rs:56 --- failure struct_marked_non_exhaustive: struct marked #[non_exhaustive] --- Description: A public struct has been marked #[non_exhaustive], which will prevent it from being constructed using a struct literal outside of its crate. It previously had no private fields, so a struct literal could be used to construct it outside its crate. ref: https://doc.rust-lang.org/cargo/reference/semver.html#attr-adding-non-exhaustive impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.36.0/src/lints/struct_marked_non_exhaustive.ron Failed in: struct SerialCircuit in /tmp/.tmp7Vjg5L/tket-json-rs/src/circuit_json.rs:202 struct SerialCircuit in /tmp/.tmp7Vjg5L/tket-json-rs/src/circuit_json.rs:202 --- 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.36.0/src/lints/struct_missing.ron Failed in: struct tket_json_rs::circuit_json::Bitstring, previously in file /tmp/.tmpgK5lkw/tket-json-rs/src/circuit_json.rs:35 struct tket_json_rs::circuit_json::BitRegister, previously in file /tmp/.tmpgK5lkw/tket-json-rs/src/circuit_json.rs:25 struct tket_json_rs::circuit_json::CompositeGate, previously in file /tmp/.tmpgK5lkw/tket-json-rs/src/circuit_json.rs:14 struct tket_json_rs::circuit_json::Register, previously in file /tmp/.tmpgK5lkw/tket-json-rs/src/circuit_json.rs:10 ```
Changelog

### ⚠ BREAKING CHANGES - Made `SerialCircuit` non exhaustive. - `Register` renamed to `ElementId`, `Qubit` and `Bit` - Moved some definitions from `::circuit_json` to `::register` - Bumped MSRV to rust 1.75 - Renamed `circuit_json::CompositeGate` to `CustomGate` ## 0.7.0 (2024-11-13) ### Features - [**breaking**] `created/discarded_qubits` circuit attribute ([#87](https://github.com/CQCL/tket-json-rs/pull/87)) - Support classical expressions ([#86](https://github.com/CQCL/tket-json-rs/pull/86)) - [**breaking**] Rename `Register` and cleanup definitions ([#89](https://github.com/CQCL/tket-json-rs/pull/89)) - [**breaking**] Support old `Composite` alias for `CustomGate` ([#91](https://github.com/CQCL/tket-json-rs/pull/91))

--- This PR was generated with [release-plz](https://github.com/MarcoIeni/release-plz/). --------- Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com> --- CHANGELOG.md | 18 ++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52d153c..39c7283 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Release notes +## 0.7.0 (2024-11-13) + +### ⚠ BREAKING CHANGES + +- Made `SerialCircuit` non exhaustive. +- `Register` renamed to `ElementId`, `Qubit` and `Bit` +- Moved some definitions from `::circuit_json` to `::register` +- Bumped MSRV to rust 1.75 +- Renamed `circuit_json::CompositeGate` to `CustomGate` + +### Features + +- [**breaking**] `created/discarded_qubits` circuit attribute ([#87](https://github.com/CQCL/tket-json-rs/pull/87)) +- Support classical expressions ([#86](https://github.com/CQCL/tket-json-rs/pull/86)) +- [**breaking**] Rename `Register` and cleanup definitions ([#89](https://github.com/CQCL/tket-json-rs/pull/89)) +- [**breaking**] Support old `Composite` alias for `CustomGate` ([#91](https://github.com/CQCL/tket-json-rs/pull/91)) + + ## 0.6.2 (2024-10-21) diff --git a/Cargo.toml b/Cargo.toml index 3830f64..198bafd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tket-json-rs" -version = "0.6.2" +version = "0.7.0" license = "Apache-2.0" edition = "2021" rust-version = "1.75"