From ddbc32de4d4b622899a0cbf7ef460ac75ecc980d Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 19 Aug 2025 18:14:55 -0400 Subject: [PATCH] Update ciphersuite/dkg MSRVs --- Cargo.toml | 1 + crypto/ciphersuite/Cargo.toml | 2 +- crypto/ciphersuite/src/lib.rs | 7 +++++-- crypto/dkg/Cargo.toml | 2 +- crypto/dkg/dealer/Cargo.toml | 2 +- crypto/dkg/recovery/Cargo.toml | 2 +- crypto/dkg/src/lib.rs | 2 ++ 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index db9f078f..9cc9db61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -160,6 +160,7 @@ directories-next = { path = "patches/directories-next" } [workspace.lints.clippy] unwrap_or_default = "allow" manual_is_multiple_of = "allow" +incompatible_msrv = "allow" # Manually verified with a GitHub workflow borrow_as_ptr = "deny" cast_lossless = "deny" cast_possible_truncation = "deny" diff --git a/crypto/ciphersuite/Cargo.toml b/crypto/ciphersuite/Cargo.toml index 9fcf60a6..9542aaa4 100644 --- a/crypto/ciphersuite/Cargo.toml +++ b/crypto/ciphersuite/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/serai-dex/serai/tree/develop/crypto/ciphersuite authors = ["Luke Parker "] keywords = ["ciphersuite", "ff", "group"] edition = "2021" -rust-version = "1.74" +rust-version = "1.73" [package.metadata.docs.rs] all-features = true diff --git a/crypto/ciphersuite/src/lib.rs b/crypto/ciphersuite/src/lib.rs index fd0c9194..02c30aed 100644 --- a/crypto/ciphersuite/src/lib.rs +++ b/crypto/ciphersuite/src/lib.rs @@ -3,8 +3,11 @@ #![cfg_attr(not(feature = "std"), no_std)] use core::fmt::Debug; -#[cfg(any(feature = "alloc", feature = "std"))] -use std_shims::io::{self, Read}; +#[allow(unused_imports)] +use std_shims::{ + prelude::*, + io::{self, Read}, +}; use rand_core::{RngCore, CryptoRng}; diff --git a/crypto/dkg/Cargo.toml b/crypto/dkg/Cargo.toml index d3529b7f..c9f2642b 100644 --- a/crypto/dkg/Cargo.toml +++ b/crypto/dkg/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/serai-dex/serai/tree/develop/crypto/dkg" authors = ["Luke Parker "] keywords = ["dkg", "multisig", "threshold", "ff", "group"] edition = "2021" -rust-version = "1.74" +rust-version = "1.73" [package.metadata.docs.rs] all-features = true diff --git a/crypto/dkg/dealer/Cargo.toml b/crypto/dkg/dealer/Cargo.toml index 2790e7d6..78b37167 100644 --- a/crypto/dkg/dealer/Cargo.toml +++ b/crypto/dkg/dealer/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/serai-dex/serai/tree/develop/crypto/dkg/dealer" authors = ["Luke Parker "] keywords = ["dkg", "multisig", "threshold", "ff", "group"] edition = "2021" -rust-version = "1.74" +rust-version = "1.73" [package.metadata.docs.rs] all-features = true diff --git a/crypto/dkg/recovery/Cargo.toml b/crypto/dkg/recovery/Cargo.toml index 68aefc4c..9c85d701 100644 --- a/crypto/dkg/recovery/Cargo.toml +++ b/crypto/dkg/recovery/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/serai-dex/serai/tree/develop/crypto/dkg/recover authors = ["Luke Parker "] keywords = ["dkg", "multisig", "threshold", "ff", "group"] edition = "2021" -rust-version = "1.74" +rust-version = "1.73" [package.metadata.docs.rs] all-features = true diff --git a/crypto/dkg/src/lib.rs b/crypto/dkg/src/lib.rs index 064a6a10..bb1aa560 100644 --- a/crypto/dkg/src/lib.rs +++ b/crypto/dkg/src/lib.rs @@ -6,6 +6,8 @@ use core::{ ops::Deref, fmt::{self, Debug}, }; +#[allow(unused_imports)] +use std_shims::prelude::*; use std_shims::{sync::Arc, vec, vec::Vec, collections::HashMap, io}; use zeroize::{Zeroize, Zeroizing};