Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: master

env:
MSRV: 1.63
MSRV: 1.85
RUSTFLAGS: "-Dwarnings"
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
Expand All @@ -23,15 +23,13 @@ jobs:
run: echo "::set-output name=msrv::$(echo $MSRV)"

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

runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/filecoin-project/blstrs"
documentation = "https://docs.rs/blstrs"
categories = ["cryptography", "algorithms"]
readme = "README.md"
rust-version = "1.63"
rust-version = "1.85"

[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "katex-header.html" ]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.63.0
1.85.0
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ macro_rules! encoded_point_delegations {
impl Eq for $t {}
impl PartialOrd for $t {
fn partial_cmp(&self, other: &$t) -> Option<::core::cmp::Ordering> {
PartialOrd::partial_cmp(&self.0[..], &other.0[..])
Some(self.cmp(other))
}
}
impl Ord for $t {
Expand Down
2 changes: 1 addition & 1 deletion src/pairing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl pairing_lib::MillerLoopResult for MillerLoopResult {
}
}

impl<'a, 'b> Add<&'b MillerLoopResult> for &'a MillerLoopResult {
impl<'b> Add<&'b MillerLoopResult> for &MillerLoopResult {
type Output = MillerLoopResult;

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ impl Field for Scalar {
// (t - 1) // 2 = 6104339283789297388802252303364915521546564123189034618274734669823
ff::helpers::sqrt_tonelli_shanks(
self,
&[
[
0x7fff_2dff_7fff_ffff,
0x04d0_ec02_a9de_d201,
0x94ce_bea4_199c_ec04,
Expand Down
Loading