From 125d737afd4ed178bc72f899439d6df95deb8693 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 16 Apr 2025 20:11:08 +0000 Subject: [PATCH 1/9] Raise MSRV to 1.63 --- CHANGELOG.md | 2 ++ Cargo.toml | 2 +- README.md | 2 +- rust-toolchain.toml | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f3dae7..06f475c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to Rust's notion of [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- MSRV is now 1.63.0. ## [0.23.0] - 2022-12-06 ### Changed diff --git a/Cargo.toml b/Cargo.toml index 2fad51f..66f4619 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "pairing" version = "0.23.0" authors = ["Sean Bowe ", "Jack Grigg "] edition = "2021" -rust-version = "1.56" +rust-version = "1.63" readme = "README.md" license = "MIT/Apache-2.0" diff --git a/README.md b/README.md index 3a0e84e..10531ba 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ access patterns, or resistance to side-channel attacks. ## Minimum Supported Rust Version -Requires Rust **1.56** or higher. +Requires Rust **1.63** or higher. Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump. diff --git a/rust-toolchain.toml b/rust-toolchain.toml index de43b23..3eebdfe 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.56.0" +channel = "1.63.0" components = [ "clippy", "rustfmt" ] From 3c001b379f9874a91dcea45b89dffc08f3841092 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 16 Apr 2025 20:18:52 +0000 Subject: [PATCH 2/9] Migrate to `group 0.14` release branch with `rand 0.9` --- CHANGELOG.md | 1 + Cargo.lock | 10 ++++------ Cargo.toml | 4 ++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06f475c..e8af0d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to Rust's notion of ## [Unreleased] ### Changed - MSRV is now 1.63.0. +- Bumped dependencies to `group 0.14`. ## [0.23.0] - 2022-12-06 ### Changed diff --git a/Cargo.lock b/Cargo.lock index 440bfc9..fc0b2e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,8 +5,7 @@ version = 3 [[package]] name = "ff" version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" +source = "git+https://github.com/zkcrypto/ff.git?rev=241caff9bcedafbe279b5a4d875461f66b3f9701#241caff9bcedafbe279b5a4d875461f66b3f9701" dependencies = [ "rand_core", "subtle", @@ -15,8 +14,7 @@ dependencies = [ [[package]] name = "group" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +source = "git+https://github.com/zkcrypto/group.git?rev=94b7e7420b410d301162a8aa4d7a0a6d88564e69#94b7e7420b410d301162a8aa4d7a0a6d88564e69" dependencies = [ "ff", "rand_core", @@ -32,9 +30,9 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.4" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" [[package]] name = "subtle" diff --git a/Cargo.toml b/Cargo.toml index 66f4619..113d9c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,7 @@ group = { version = "0.13", default-features = false } [badges] maintenance = { status = "actively-developed" } + +[patch.crates-io] +ff = { git = "https://github.com/zkcrypto/ff.git", rev = "241caff9bcedafbe279b5a4d875461f66b3f9701" } +group = { git = "https://github.com/zkcrypto/group.git", rev = "94b7e7420b410d301162a8aa4d7a0a6d88564e69" } From 36b60181b61f1f2062822e831dba33b8f0ac1b31 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 17 Apr 2025 17:54:30 +0000 Subject: [PATCH 3/9] Preview 0.24.0-pre.0 --- Cargo.lock | 12 +++++++----- Cargo.toml | 8 ++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fc0b2e4..d158f05 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,8 +4,9 @@ version = 3 [[package]] name = "ff" -version = "0.13.1" -source = "git+https://github.com/zkcrypto/ff.git?rev=241caff9bcedafbe279b5a4d875461f66b3f9701#241caff9bcedafbe279b5a4d875461f66b3f9701" +version = "0.14.0-pre.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d42dd26f5790eda47c1a2158ea4120e32c35ddc9a7743c98a292accc01b54ef3" dependencies = [ "rand_core", "subtle", @@ -13,8 +14,9 @@ dependencies = [ [[package]] name = "group" -version = "0.13.0" -source = "git+https://github.com/zkcrypto/group.git?rev=94b7e7420b410d301162a8aa4d7a0a6d88564e69#94b7e7420b410d301162a8aa4d7a0a6d88564e69" +version = "0.14.0-pre.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ff6a0b2dd4b981b1ae9e3e6830ab146771f3660d31d57bafd9018805a91b0f1" dependencies = [ "ff", "rand_core", @@ -23,7 +25,7 @@ dependencies = [ [[package]] name = "pairing" -version = "0.23.0" +version = "0.24.0-pre.0" dependencies = [ "group", ] diff --git a/Cargo.toml b/Cargo.toml index 113d9c1..50c2d6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pairing" -version = "0.23.0" +version = "0.24.0-pre.0" authors = ["Sean Bowe ", "Jack Grigg "] edition = "2021" rust-version = "1.63" @@ -13,11 +13,7 @@ homepage = "https://github.com/zkcrypto/pairing" repository = "https://github.com/zkcrypto/pairing" [dependencies] -group = { version = "0.13", default-features = false } +group = { version = "=0.14.0-pre.0", default-features = false } [badges] maintenance = { status = "actively-developed" } - -[patch.crates-io] -ff = { git = "https://github.com/zkcrypto/ff.git", rev = "241caff9bcedafbe279b5a4d875461f66b3f9701" } -group = { git = "https://github.com/zkcrypto/group.git", rev = "94b7e7420b410d301162a8aa4d7a0a6d88564e69" } From a46b5e1ef5f918d99faecc7bfebf63544db23743 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Thu, 10 Sep 2026 21:47:12 +0200 Subject: [PATCH 4/9] Bump up MSRV to 1.85.0 --- CHANGELOG.md | 2 +- Cargo.toml | 2 +- rust-toolchain.toml | 2 +- src/lib.rs | 14 +++++++------- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8af0d3..6eac276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to Rust's notion of ## [Unreleased] ### Changed -- MSRV is now 1.63.0. +- MSRV is now 1.85.0. - Bumped dependencies to `group 0.14`. ## [0.23.0] - 2022-12-06 diff --git a/Cargo.toml b/Cargo.toml index 50c2d6a..5ba11c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "pairing" version = "0.24.0-pre.0" authors = ["Sean Bowe ", "Jack Grigg "] edition = "2021" -rust-version = "1.63" +rust-version = "1.85" readme = "README.md" license = "MIT/Apache-2.0" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 3eebdfe..934386c 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.63.0" +channel = "1.85" components = [ "clippy", "rustfmt" ] diff --git a/src/lib.rs b/src/lib.rs index 5aaa733..0c6366b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,13 +4,13 @@ // `clippy` is a code linting tool for improving code quality by catching // common mistakes or strange code patterns. If the `cargo-clippy` feature // is provided, all compiler warnings are prohibited. -#![cfg_attr(feature = "cargo-clippy", deny(warnings))] -#![cfg_attr(feature = "cargo-clippy", allow(clippy::inline_always))] -#![cfg_attr(feature = "cargo-clippy", allow(clippy::too_many_arguments))] -#![cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal))] -#![cfg_attr(feature = "cargo-clippy", allow(clippy::many_single_char_names))] -#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))] -#![cfg_attr(feature = "cargo-clippy", allow(clippy::write_literal))] +#![deny(warnings)] +#![allow(clippy::inline_always)] +#![allow(clippy::too_many_arguments)] +#![allow(clippy::unreadable_literal)] +#![allow(clippy::many_single_char_names)] +#![allow(clippy::new_without_default)] +#![allow(clippy::write_literal)] // Catch documentation errors caused by code changes. #![deny(rustdoc::broken_intra_doc_links)] // Force public structures to implement Debug From 263c8dc14a3c56dda87735ef57a1ecdc12dd46f0 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Thu, 10 Sep 2026 18:12:02 +0200 Subject: [PATCH 5/9] Deps: update group to 0.14.0 --- Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d158f05..197e445 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "ff" -version = "0.14.0-pre.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d42dd26f5790eda47c1a2158ea4120e32c35ddc9a7743c98a292accc01b54ef3" +checksum = "a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f" dependencies = [ "rand_core", "subtle", @@ -14,9 +14,9 @@ dependencies = [ [[package]] name = "group" -version = "0.14.0-pre.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ff6a0b2dd4b981b1ae9e3e6830ab146771f3660d31d57bafd9018805a91b0f1" +checksum = "7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4" dependencies = [ "ff", "rand_core", @@ -32,9 +32,9 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.9.3" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" [[package]] name = "subtle" diff --git a/Cargo.toml b/Cargo.toml index 5ba11c1..298937a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ homepage = "https://github.com/zkcrypto/pairing" repository = "https://github.com/zkcrypto/pairing" [dependencies] -group = { version = "=0.14.0-pre.0", default-features = false } +group = { version = "0.14", default-features = false } [badges] maintenance = { status = "actively-developed" } From 01c62404d9352651864a9a31fd679658f85e584b Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 15 Sep 2026 21:37:35 +0000 Subject: [PATCH 6/9] CI: Fix wasm32-wasip1 target name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66219ea..686195e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: strategy: matrix: target: - - wasm32-wasi + - wasm32-wasip1 - thumbv6m-none-eabi - thumbv7em-none-eabihf steps: From d6e40b58ce1a1c940f1998b26e174018ba60eb02 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 15 Sep 2026 21:45:09 +0000 Subject: [PATCH 7/9] Migrate to 2024 edition --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 298937a..8a5990b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "pairing" version = "0.24.0-pre.0" authors = ["Sean Bowe ", "Jack Grigg "] -edition = "2021" +edition = "2024" rust-version = "1.85" readme = "README.md" license = "MIT/Apache-2.0" diff --git a/src/lib.rs b/src/lib.rs index 0c6366b..1b7238b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,9 +21,9 @@ pub use group; use core::ops::{Add, AddAssign, Mul}; use group::{ + Group, GroupOps, GroupOpsOwned, ScalarMul, ScalarMulOwned, UncompressedEncoding, ff::PrimeField, prime::{PrimeCurve, PrimeCurveAffine}, - Group, GroupOps, GroupOpsOwned, ScalarMul, ScalarMulOwned, UncompressedEncoding, }; /// An "engine" is a collection of types (fields, elliptic curve groups, etc.) From 38ea92f9804cfb92624b4845c0695d79cf86b548 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 15 Sep 2026 21:46:06 +0000 Subject: [PATCH 8/9] Update author email --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8a5990b..6cb3a80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pairing" version = "0.24.0-pre.0" -authors = ["Sean Bowe ", "Jack Grigg "] +authors = ["Sean Bowe ", "Jack Grigg "] edition = "2024" rust-version = "1.85" readme = "README.md" From bc0ab24e61b5080e9523a1cf7a8c18e43c061de0 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 15 Sep 2026 21:47:24 +0000 Subject: [PATCH 9/9] Release 0.24.0 --- CHANGELOG.md | 2 ++ Cargo.lock | 4 ++-- Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eac276..74a7d5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to Rust's notion of [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [0.24.0] - 2026-09-15 ### Changed - MSRV is now 1.85.0. - Bumped dependencies to `group 0.14`. diff --git a/Cargo.lock b/Cargo.lock index 197e445..b11ed30 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "ff" @@ -25,7 +25,7 @@ dependencies = [ [[package]] name = "pairing" -version = "0.24.0-pre.0" +version = "0.24.0" dependencies = [ "group", ] diff --git a/Cargo.toml b/Cargo.toml index 6cb3a80..bab1ec9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pairing" -version = "0.24.0-pre.0" +version = "0.24.0" authors = ["Sean Bowe ", "Jack Grigg "] edition = "2024" rust-version = "1.85"