Skip to content

Commit 6646be1

Browse files
authored
chore: bump MSRV to 1.85 (#68)
1 parent 05b8dcf commit 6646be1

6 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: master
77

88
env:
9-
MSRV: 1.63
9+
MSRV: 1.85
1010
RUSTFLAGS: "-Dwarnings"
1111
CARGO_INCREMENTAL: 0
1212
RUST_BACKTRACE: 1
@@ -23,15 +23,13 @@ jobs:
2323
run: echo "::set-output name=msrv::$(echo $MSRV)"
2424

2525
linux_foreign:
26+
needs: set-msrv
2627
strategy:
2728
matrix:
2829
include:
2930
# 64-bit Linux/arm64
3031
- target: aarch64-unknown-linux-gnu
31-
# NOTE vmx 2024-07-15: Use at least Rust 1.68.2 for now, so that we can use the sparse
32-
# index. Without this, the build times out. Once the MSRV is >= 1.68.2, we don't need
33-
# to special case anymore and can use the MSRV instead.
34-
toolchain: 1.68.2
32+
toolchain: ${{needs.set-msrv.outputs.msrv}}
3533
arch: aarch64
3634

3735
runs-on: ubuntu-22.04

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/filecoin-project/blstrs"
99
documentation = "https://docs.rs/blstrs"
1010
categories = ["cryptography", "algorithms"]
1111
readme = "README.md"
12-
rust-version = "1.63"
12+
rust-version = "1.85"
1313

1414
[package.metadata.docs.rs]
1515
rustdoc-args = [ "--html-in-header", "katex-header.html" ]

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.63.0
1+
1.85.0

src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ macro_rules! encoded_point_delegations {
161161
impl Eq for $t {}
162162
impl PartialOrd for $t {
163163
fn partial_cmp(&self, other: &$t) -> Option<::core::cmp::Ordering> {
164-
PartialOrd::partial_cmp(&self.0[..], &other.0[..])
164+
Some(self.cmp(other))
165165
}
166166
}
167167
impl Ord for $t {

src/pairing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl pairing_lib::MillerLoopResult for MillerLoopResult {
174174
}
175175
}
176176

177-
impl<'a, 'b> Add<&'b MillerLoopResult> for &'a MillerLoopResult {
177+
impl<'b> Add<&'b MillerLoopResult> for &MillerLoopResult {
178178
type Output = MillerLoopResult;
179179

180180
#[inline]

src/scalar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ impl Field for Scalar {
388388
// (t - 1) // 2 = 6104339283789297388802252303364915521546564123189034618274734669823
389389
ff::helpers::sqrt_tonelli_shanks(
390390
self,
391-
&[
391+
[
392392
0x7fff_2dff_7fff_ffff,
393393
0x04d0_ec02_a9de_d201,
394394
0x94ce_bea4_199c_ec04,

0 commit comments

Comments
 (0)