From 0ca9b8d937fec46861fefffa113ce0aacfbd4ec4 Mon Sep 17 00:00:00 2001 From: gilcu3 Date: Thu, 23 Jul 2026 08:30:06 +0200 Subject: [PATCH] chore: bump deps and MSRV, fix clippy warnings --- Cargo.lock | 12 ++++++------ Cargo.toml | 4 ++-- rust-toolchain.toml | 2 +- src/lib.rs | 18 +++++++++--------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 440bfc9..64740a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "ff" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" +checksum = "a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f" dependencies = [ "rand_core", "subtle", @@ -14,9 +14,9 @@ dependencies = [ [[package]] name = "group" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +checksum = "7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4" dependencies = [ "ff", "rand_core", @@ -32,9 +32,9 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.4" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" [[package]] name = "subtle" diff --git a/Cargo.toml b/Cargo.toml index 2fad51f..e5ae843 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.85" readme = "README.md" license = "MIT/Apache-2.0" @@ -13,7 +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", default-features = false } [badges] maintenance = { status = "actively-developed" } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index de43b23..efd3308 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.56.0" +channel = "1.85.0" components = [ "clippy", "rustfmt" ] diff --git a/src/lib.rs b/src/lib.rs index 5aaa733..413d8b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,15 +2,15 @@ #![no_std] // `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))] +// common mistakes or strange code patterns. When compiling under `clippy`, +// all compiler warnings are prohibited. +#![cfg_attr(clippy, 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