Skip to content

Commit 7ef3ff6

Browse files
evanlinjinnotmandatory
authored andcommitted
chore: Enforce min rustls version to 0.23.19
`rustls` versions 0.23.18 and 0.23.19 contains fix for vulnerability RUSTSEC-2024-0399. However, 0.23.18 bumps MSRV to 1.71. 0.23.19 reverts MSRV back to 1.63. We enforce min `rustls` version to 0.23.19 to make it easier to compile on MSRV and ensure we include the RUSTSEC-2024-0399 fix. Note that in CI, I decided to pin `rustls` dependency to 0.23.19 explicitly. This is because in future versions of `rustls`, the MSRV will be changed to 1.71.
1 parent f00b999 commit 7ef3ff6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/cont_integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Pin dependencies for MSRV
3232
if: matrix.rust == '1.63.0'
3333
run: |
34-
cargo update -p rustls --precise "0.23.17"
34+
cargo update -p rustls --precise "0.23.19"
3535
- name: Test
3636
run: cargo test --verbose --all-features
3737
- name: Setup iptables for the timeout test

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ serde_json = { version = "^1.0" }
2626

2727
# Optional dependencies
2828
openssl = { version = "0.10", optional = true }
29-
rustls = { version = "0.23", optional = true, default-features = false }
29+
rustls = { version = "0.23.19", optional = true, default-features = false }
3030
webpki-roots = { version = "0.25", optional = true }
3131

3232
byteorder = { version = "1.0", optional = true }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ This library should compile with any combination of features with Rust 1.63.0.
1717
To build with the MSRV you will need to pin dependencies as follows:
1818

1919
```shell
20-
cargo update -p rustls --precise "0.23.17"
20+
cargo update -p rustls --precise "0.23.19"
2121
```
2222

0 commit comments

Comments
 (0)