File tree 7 files changed +16
-26
lines changed
7 files changed +16
-26
lines changed Original file line number Diff line number Diff line change 12
12
matrix :
13
13
rust :
14
14
- stable # STABLE
15
- - 1.63 .0 # MSRV
15
+ - 1.75 .0 # MSRV
16
16
steps :
17
17
- name : Checkout
18
18
uses : actions/checkout@v4
28
28
uses : dtolnay/rust-toolchain@stable
29
29
with :
30
30
toolchain : ${{ matrix.rust }}
31
- - name : Pin dependencies for MSRV
32
- if : matrix.rust == '1.63.0'
33
- run : |
34
- cargo update -p rustls --precise "0.23.19"
35
31
- name : Test
36
32
run : cargo test --verbose --all-features
37
33
- name : Setup iptables for the timeout test
@@ -61,12 +57,13 @@ jobs:
61
57
run : cargo fmt --all -- --config format_code_in_doc_comments=true --check
62
58
63
59
clippy_check :
60
+ name : Rust clippy
64
61
runs-on : ubuntu-latest
65
62
steps :
66
63
- uses : actions/checkout@v4
67
64
- uses : dtolnay/rust-toolchain@stable
68
65
with :
69
- toolchain : 1.78 .0
66
+ toolchain : 1.84 .0
70
67
components : clippy
71
68
- name : Rust Cache
72
69
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ documentation = "https://docs.rs/electrum-client/"
9
9
description = " Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers."
10
10
keywords = [" bitcoin" , " electrum" ]
11
11
readme = " README.md"
12
- rust-version = " 1.63 .0"
12
+ rust-version = " 1.75 .0"
13
13
edition = " 2021"
14
14
15
15
# loosely based on https://github.com/evgeniy-scherbina/rust-electrumx-client
@@ -26,7 +26,7 @@ serde_json = { version = "^1.0" }
26
26
27
27
# Optional dependencies
28
28
openssl = { version = " 0.10" , optional = true }
29
- rustls = { version = " 0.23.19 " , optional = true , default-features = false }
29
+ rustls = { version = " 0.23.21 " , optional = true , default-features = false }
30
30
webpki-roots = { version = " 0.25" , optional = true }
31
31
32
32
byteorder = { version = " 1.0" , optional = true }
Original file line number Diff line number Diff line change 5
5
[ GitHub Workflow ] : https://github.com/bitcoindevkit/rust-electrum-client/actions?query=workflow%3ACI
6
6
[ Latest Version ] : https://img.shields.io/crates/v/electrum-client.svg
7
7
[ crates.io ] : https://crates.io/crates/electrum-client
8
- [ MSRV Badge ] : https://img.shields.io/badge/rustc-1.63 .0%2B-lightgrey.svg
9
- [ Rust Blog ] : https://blog.rust-lang.org/2022/08/11 /Rust-1.63 .0.html
8
+ [ MSRV Badge ] : https://img.shields.io/badge/rustc-1.75 .0%2B-lightgrey.svg
9
+ [ Rust Blog ] : https://blog.rust-lang.org/2023/12/28 /Rust-1.75 .0.html
10
10
11
11
Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers.
12
12
13
13
## Minimum Supported Rust Version (MSRV)
14
14
15
- This library should compile with any combination of features with Rust 1.63.0.
16
-
17
- To build with the MSRV you will need to pin dependencies as follows:
18
-
19
- ``` shell
20
- cargo update -p rustls --precise " 0.23.19"
21
- ```
22
-
15
+ This library should compile with any combination of features with Rust 1.75.0.
Original file line number Diff line number Diff line change 1
- msrv =" 1.63 .0"
1
+ msrv =" 1.75 .0"
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ impl ToTargetAddr for (Ipv6Addr, u16) {
99
99
}
100
100
}
101
101
102
- impl < ' a > ToTargetAddr for ( & ' a str , u16 ) {
102
+ impl ToTargetAddr for ( & str , u16 ) {
103
103
fn to_target_addr ( & self ) -> io:: Result < TargetAddr > {
104
104
// try to parse as an IP first
105
105
if let Ok ( addr) = self . 0 . parse :: < Ipv4Addr > ( ) {
@@ -114,7 +114,7 @@ impl<'a> ToTargetAddr for (&'a str, u16) {
114
114
}
115
115
}
116
116
117
- impl < ' a > ToTargetAddr for & ' a str {
117
+ impl ToTargetAddr for & str {
118
118
fn to_target_addr ( & self ) -> io:: Result < TargetAddr > {
119
119
// try to parse as an IP first
120
120
if let Ok ( addr) = self . parse :: < SocketAddrV4 > ( ) {
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl Read for Socks4Stream {
148
148
}
149
149
}
150
150
151
- impl < ' a > Read for & ' a Socks4Stream {
151
+ impl Read for & Socks4Stream {
152
152
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
153
153
( & self . socket ) . read ( buf)
154
154
}
@@ -164,7 +164,7 @@ impl Write for Socks4Stream {
164
164
}
165
165
}
166
166
167
- impl < ' a > Write for & ' a Socks4Stream {
167
+ impl Write for & Socks4Stream {
168
168
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
169
169
( & self . socket ) . write ( buf)
170
170
}
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ enum Authentication<'a> {
135
135
None ,
136
136
}
137
137
138
- impl < ' a > Authentication < ' a > {
138
+ impl Authentication < ' _ > {
139
139
fn id ( & self ) -> u8 {
140
140
match * self {
141
141
Authentication :: Password { .. } => 2 ,
@@ -329,7 +329,7 @@ impl Read for Socks5Stream {
329
329
}
330
330
}
331
331
332
- impl < ' a > Read for & ' a Socks5Stream {
332
+ impl Read for & Socks5Stream {
333
333
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
334
334
( & self . socket ) . read ( buf)
335
335
}
@@ -345,7 +345,7 @@ impl Write for Socks5Stream {
345
345
}
346
346
}
347
347
348
- impl < ' a > Write for & ' a Socks5Stream {
348
+ impl Write for & Socks5Stream {
349
349
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
350
350
( & self . socket ) . write ( buf)
351
351
}
You can’t perform that action at this time.
0 commit comments