-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect the current version of rustls before pinning
- Loading branch information
1 parent
463e432
commit 00157eb
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,9 @@ function PIN_RELEASE_DEPS { | |
# indexmap 2.6.0 upgraded to hashbrown 0.15, which unfortunately bumped their MSRV to rustc 1.65 with the 0.15.1 release (and 2.7.0 was released since). | ||
[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p [email protected] --precise "2.5.0" --verbose | ||
|
||
CURRENT_RUSTLS="$(cargo tree --features=electrum | grep -o 'rustls v0.23.*' | sed 's/rustls v//')" | ||
# Starting with version 0.23.20, the `rustls` crate has an MSRV of rustc 1.71.0 | ||
[ "$RUSTC_MINOR_VERSION" -lt 71 ] && cargo update -p rustls@0.23.20 --precise "0.23.19" --verbose | ||
[ "$RUSTC_MINOR_VERSION" -lt 71 ] && cargo update -p rustls@"$CURRENT_RUSTLS" --precise "0.23.19" --verbose | ||
|
||
return 0 # Don't fail the script if our rustc is higher than the last check | ||
} | ||
|