|
1 | 1 | #!/bin/bash
|
2 | 2 | set -eox pipefail
|
3 | 3 |
|
4 |
| -RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[2] }') |
| 4 | +# Currently unused as we don't have to pin anything for MSRV: |
| 5 | +#RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[2] }') |
5 | 6 |
|
6 | 7 | # Some crates require pinning to meet our MSRV even for our downstream users,
|
7 | 8 | # which we do here.
|
8 | 9 | # Further crates which appear only as dev-dependencies are pinned further down.
|
9 | 10 | function PIN_RELEASE_DEPS {
|
10 |
| - # Starting with version 1.39.0, the `tokio` crate has an MSRV of rustc 1.70.0 |
11 |
| - [ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p tokio --precise "1.38.1" --verbose |
12 |
| - |
13 | 11 | return 0 # Don't fail the script if our rustc is higher than the last check
|
14 | 12 | }
|
15 | 13 |
|
16 | 14 | PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
|
17 | 15 |
|
18 |
| -# Starting with version 1.10.0, the `regex` crate has an MSRV of rustc 1.65.0. |
19 |
| -[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p regex --precise "1.9.6" --verbose |
20 |
| - |
21 |
| -# The addr2line v0.21 crate (a dependency of `backtrace` starting with 0.3.69) relies on rustc 1.65 |
22 |
| -[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p backtrace --precise "0.3.68" --verbose |
23 |
| - |
24 |
| -# The once_cell v1.21.0 crate (a dependency of `proptest`) relies on rustc 1.70 |
25 |
| -[ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p once_cell --precise "1.20.3" --verbose |
26 |
| - |
27 |
| -# proptest 1.3.0 requires rustc 1.64.0 |
28 |
| -[ "$RUSTC_MINOR_VERSION" -lt 64 ] && cargo update -p proptest --precise "1.2.0" --verbose |
29 |
| - |
30 |
| -# parking_lot 0.12.4 requires rustc 1.64.0 |
31 |
| -[ "$RUSTC_MINOR_VERSION" -lt 64 ] && cargo update -p parking_lot --precise "0.12.3" --verbose |
32 |
| - |
33 |
| -# parking_lot_core 0.9.11 requires rustc 1.64.0 |
34 |
| -[ "$RUSTC_MINOR_VERSION" -lt 64 ] && cargo update -p parking_lot_core --precise "0.9.10" --verbose |
35 |
| - |
36 |
| -# lock_api 0.4.13 requires rustc 1.64.0 |
37 |
| -[ "$RUSTC_MINOR_VERSION" -lt 64 ] && cargo update -p lock_api --precise "0.4.12" --verbose |
38 |
| - |
39 | 16 | export RUST_BACKTRACE=1
|
40 | 17 |
|
41 | 18 | echo -e "\n\nChecking the workspace, except lightning-transaction-sync."
|
@@ -64,7 +41,6 @@ cargo test --verbose --color always
|
64 | 41 |
|
65 | 42 | echo -e "\n\nTesting upgrade from prior versions of LDK"
|
66 | 43 | pushd lightning-tests
|
67 |
| -[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p regex --precise "1.9.6" --verbose |
68 | 44 | cargo test
|
69 | 45 | popd
|
70 | 46 |
|
|
0 commit comments