Skip to content

Commit fffcf4d

Browse files
authored
Bump MSRV to 1.85.0 (#957)
Closes #954 Following the rest of the ecosystem we are bumping rust-payjoin to an msrv of 1.85.0. Any actual code changes / improvements beyond lint failures caused by the upgrade will come in a follow-up PR
2 parents 1d8e43b + 71abe37 commit fffcf4d

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
rust:
12-
- 1.63.0 # MSRV
12+
- 1.85.0 # MSRV
1313
- stable
1414
- nightly
1515
env:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<a href="https://docs.rs/payjoin"><img alt="Crates" src="https://img.shields.io/static/v1?logo=read-the-docs&label=docs.rs&message=payjoin&color=f75390"></a>
1313
<a href="https://github.com/payjoin/rust-payjoin/actions/workflows/rust.yml"><img alt="CI Status" src="https://github.com/payjoin/rust-payjoin/actions/workflows/rust.yml/badge.svg"></a>
1414
<a href="https://coveralls.io/github/payjoin/rust-payjoin?branch=master"><img src="https://coveralls.io/repos/github/payjoin/rust-payjoin/badge.svg?branch=master"/></a>
15-
<a href="https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html"><img alt="Rustc Version 1.63.0+" src="https://img.shields.io/badge/rustc-1.63.0%2B-lightgrey.svg"/></a>
15+
<a href="https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/"><img alt="Rustc Version 1.85.0+" src="https://img.shields.io/badge/rustc-1.85.0%2B-lightgrey.svg"/></a>
1616
</p>
1717

1818
<h4>
@@ -101,7 +101,7 @@ Seeking review of the code that verifies there is no overpayment. Contributions
101101

102102
## Minimum Supported Rust Version (MSRV)
103103

104-
The `payjoin` library and `payjoin-cli` should always compile with any combination of features on Rust **1.63.0**.
104+
The `payjoin` library and `payjoin-cli` should always compile with any combination of features on Rust **1.85.0**.
105105

106106
To build and test with the MSRV you will need to pin the below dependency versions:
107107

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
overlays = [rust-overlay.overlays.default];
2626
};
2727

28-
msrv = "1.63.0";
28+
msrv = "1.85.0";
2929
rustVersions = with pkgs.rust-bin;
3030
builtins.mapAttrs (_name: rust-bin:
3131
rust-bin.override {

payjoin-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords = ["bip78", "payjoin", "bitcoin"]
99
categories = ["cryptography::cryptocurrencies", "network-programming"]
1010
license = "MITNFA"
1111
edition = "2021"
12-
rust-version = "1.63"
12+
rust-version = "1.85"
1313
resolver = "2"
1414
exclude = ["tests"]
1515

payjoin-directory/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords = ["bip78", "bip77", "payjoin", "bitcoin", "ohttp"]
99
categories = ["cryptography::cryptocurrencies", "network-programming"]
1010
license = "MITNFA"
1111
edition = "2021"
12-
rust-version = "1.63"
12+
rust-version = "1.85"
1313
resolver = "2"
1414

1515
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

payjoin-test-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
authors = ["Dan Gould <d@ngould.dev>"]
66
description = "Payjoin test utilities"
77
repository = "https://github.com/payjoin/rust-payjoin"
8-
rust-version = "1.63"
8+
rust-version = "1.85"
99
license = "MIT"
1010

1111
[dependencies]

payjoin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["api-bindings", "cryptography::cryptocurrencies", "network-program
1010
license = "MITNFA"
1111
resolver = "2"
1212
edition = "2021"
13-
rust-version = "1.63"
13+
rust-version = "1.85"
1414
exclude = ["tests"]
1515

1616
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

payjoin/src/core/send/v1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ mod test {
354354
// invalid
355355
let mut invalid_utf8_padding = PAYJOIN_PROPOSAL.as_bytes().to_vec();
356356
invalid_utf8_padding
357-
.extend(std::iter::repeat(0x00).take(MAX_CONTENT_LENGTH - invalid_utf8_padding.len()));
357+
.extend(std::iter::repeat_n(0x00, MAX_CONTENT_LENGTH - invalid_utf8_padding.len()));
358358

359359
let ctx = create_v1_context();
360360
let response = ctx.process_response(&invalid_utf8_padding);
@@ -375,7 +375,7 @@ mod test {
375375
#[test]
376376
fn process_response_invalid_buffer_len() {
377377
let mut data = PAYJOIN_PROPOSAL.as_bytes().to_vec();
378-
data.extend(std::iter::repeat(0).take(MAX_CONTENT_LENGTH + 1));
378+
data.extend(std::iter::repeat_n(0, MAX_CONTENT_LENGTH + 1));
379379

380380
let ctx = create_v1_context();
381381
let response = ctx.process_response(&data);

0 commit comments

Comments
 (0)