-
Notifications
You must be signed in to change notification settings - Fork 420
chore(msrv): bump MSRV to 1.85.0
#2055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ValuedMammal
merged 9 commits into
bitcoindevkit:master
from
oleonardolima:chore/bump-msrv-to-1.85.0
Oct 17, 2025
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8c15308
chore(msrv): bump MSRV to `1.85.0`
oleonardolima 6b67a34
fix(clippy): use `is_none_or` instead of `map_or`
oleonardolima 7c189d0
chore(deps): bump `criterion` to `0.7`
oleonardolima 81ed4d0
feat(ci): update to `actions-rust-lang/setup-rust-toolchain@v1`
oleonardolima dc0c907
ci: drop actions-rs from clippy check
ValuedMammal 86df0c3
ci: Remove unneeded `clippy: true` from build-test
ValuedMammal eabd1be
ci(coverage): Switch to `actions-rust-lang/setup-rust-toolchain`
ValuedMammal 2f4c3d4
ci: use explicit `cache: true` on fmt job
ValuedMammal fdafe86
ci: bump rust stable version to 1.90.0 for CI testing
evanlinjin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -16,14 +16,12 @@ jobs: | |
| - name: Install lcov tools | ||
| run: sudo apt-get install lcov -y | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| toolchain: nightly | ||
| override: true | ||
| profile: minimal | ||
| cache: true | ||
| components: llvm-tools-preview | ||
| - name: Rust Cache | ||
| uses: Swatinem/[email protected] | ||
| - name: Install cargo-llvm-cov | ||
| run: if [[ ! -e ~/.cargo/bin/cargo-llvm-cov ]]; then cargo install cargo-llvm-cov; fi | ||
| - name: Make coverage directory | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -27,9 +27,7 @@ jobs: | |
| matrix: | ||
| rust: | ||
| - version: ${{ needs.prepare.outputs.rust_version }} | ||
| clippy: true | ||
| - version: 1.63.0 # Overall MSRV | ||
| - version: 1.75.0 # Specific MSRV for `bdk_electrum` | ||
| - version: 1.85.0 # MSRV | ||
| features: | ||
| - --no-default-features --features miniscript/no-std,bdk_chain/hashbrown | ||
| - --all-features | ||
|
|
@@ -39,38 +37,20 @@ jobs: | |
| with: | ||
| persist-credentials: false | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| toolchain: ${{ matrix.rust.version }} | ||
| override: true | ||
| profile: minimal | ||
| - name: Rust Cache | ||
| uses: Swatinem/[email protected] | ||
| - name: Pin dependencies for 1.75 | ||
| if: matrix.rust.version == '1.75.0' | ||
| run: | | ||
| cargo update -p home --precise "0.5.9" | ||
| cargo update -p native-tls --precise "0.2.13" | ||
| cargo update -p idna_adapter --precise "1.1.0" | ||
| cargo update -p base64ct --precise "1.6.0" | ||
| cargo update -p minreq --precise "2.13.2" | ||
| cargo update -p rayon --precise "1.10.0" | ||
| cargo update -p rayon-core --precise "1.12.1" | ||
| cargo update -p time --precise "0.3.41" | ||
| cache: true | ||
| - name: Pin dependencies for MSRV | ||
| if: matrix.rust.version == '1.63.0' | ||
| if: matrix.rust.version == '1.85.0' | ||
| run: ./ci/pin-msrv.sh | ||
| - name: Build + Test | ||
| env: | ||
| MATRIX_RUST_VERSION: ${{ matrix.rust.version }} | ||
| run: | | ||
| if [ $MATRIX_RUST_VERSION = '1.63.0' ]; then | ||
| cargo build --workspace --exclude 'example_*' --exclude 'bdk_electrum' ${{ matrix.features }} | ||
| cargo test --workspace --exclude 'example_*' --exclude 'bdk_electrum' ${{ matrix.features }} | ||
| else | ||
| cargo build --workspace --exclude 'example_*' ${{ matrix.features }} | ||
| cargo test --workspace --exclude 'example_*' ${{ matrix.features }} | ||
| fi | ||
|
|
||
| check-no-std: | ||
| needs: prepare | ||
|
|
@@ -82,14 +62,12 @@ jobs: | |
| with: | ||
| persist-credentials: false | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
| with: | ||
| toolchain: ${{ needs.prepare.outputs.rust_version }} | ||
| override: true | ||
| profile: minimal | ||
| cache: true | ||
| # target: "thumbv6m-none-eabi" | ||
| - name: Rust Cache | ||
| uses: Swatinem/[email protected] | ||
| - name: Check bdk_chain | ||
| working-directory: ./crates/chain | ||
| # TODO "--target thumbv6m-none-eabi" should work but currently does not | ||
|
|
@@ -116,14 +94,12 @@ jobs: | |
| - run: sudo apt-get update || exit 1 | ||
| - run: sudo apt-get install -y libclang-common-14-dev clang-14 libc6-dev-i386 || exit 1 | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
| with: | ||
| toolchain: ${{ needs.prepare.outputs.rust_version }} | ||
| override: true | ||
| profile: minimal | ||
| cache: true | ||
| target: "wasm32-unknown-unknown" | ||
| - name: Rust Cache | ||
| uses: Swatinem/[email protected] | ||
| - name: Check esplora | ||
| working-directory: ./crates/esplora | ||
| run: cargo check --target wasm32-unknown-unknown --no-default-features --features bdk_core/hashbrown,async | ||
|
|
@@ -137,11 +113,11 @@ jobs: | |
| with: | ||
| persist-credentials: false | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
| with: | ||
| toolchain: nightly | ||
| override: true | ||
| profile: minimal | ||
| cache: true | ||
| components: rustfmt | ||
| - name: Check fmt | ||
| run: cargo fmt --all --check | ||
|
|
@@ -156,18 +132,14 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions-rs/toolchain@v1 | ||
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
| with: | ||
| toolchain: ${{ needs.prepare.outputs.rust_version }} | ||
| components: clippy | ||
| override: true | ||
| - name: Rust Cache | ||
| uses: Swatinem/[email protected] | ||
| - uses: actions-rs/clippy-check@v1 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| name: Clippy Results | ||
| args: --all-features --all-targets -- -D warnings | ||
| cache: true | ||
| - name: Clippy | ||
| run: cargo clippy --all-features --all-targets -- -D warnings | ||
|
|
||
| build-examples: | ||
| needs: prepare | ||
|
|
@@ -186,13 +158,11 @@ jobs: | |
| with: | ||
| persist-credentials: false | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
evanlinjin marked this conversation as resolved.
Fixed
Show fixed
Hide fixed
|
||
| with: | ||
| toolchain: ${{ needs.prepare.outputs.rust_version }} | ||
| override: true | ||
| profile: minimal | ||
| - name: Rust Cache | ||
| uses: Swatinem/[email protected] | ||
| cache: true | ||
| - name: Build | ||
| working-directory: examples/${{ matrix.example-dir }} | ||
| run: cargo build | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Zizmor config | ||
| rules: | ||
| unpinned-uses: | ||
| config: | ||
| policies: | ||
| # Allow pin by ref/tag | ||
| actions-rust-lang/setup-rust-toolchain: ref-pin | ||
| actions/*: ref-pin |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,27 +8,4 @@ set -euo pipefail | |
| # To pin deps, switch toolchain to MSRV and execute the below updates | ||
|
|
||
| # cargo clean | ||
| # rustup override set 1.63.0 | ||
|
|
||
| cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5" | ||
| cargo update -p time --precise "0.3.20" | ||
| cargo update -p home --precise "0.5.5" | ||
| cargo update -p proptest --precise "1.2.0" | ||
| cargo update -p url --precise "2.5.0" | ||
| cargo update -p tokio --precise "1.38.1" | ||
| cargo update -p reqwest --precise "0.12.4" | ||
| cargo update -p security-framework-sys --precise "2.11.1" | ||
| cargo update -p csv --precise "1.3.0" | ||
| cargo update -p unicode-width --precise "0.1.13" | ||
| cargo update -p native-tls --precise "0.2.13" | ||
| cargo update -p flate2 --precise "1.0.35" | ||
| cargo update -p bzip2-sys --precise "0.1.12" | ||
| cargo update -p ring --precise "0.17.12" | ||
| cargo update -p once_cell --precise "1.20.3" | ||
| cargo update -p base64ct --precise "1.6.0" | ||
| cargo update -p minreq --precise "2.13.2" | ||
| cargo update -p tracing-core --precise "0.1.33" | ||
| cargo update -p [email protected] --precise "1.0.1" | ||
| cargo update -p rayon --precise "1.10.0" | ||
| cargo update -p rayon-core --precise "1.12.1" | ||
| cargo update -p [email protected] --precise "0.5.10" | ||
| # rustup override set 1.85.0 | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| msrv="1.63.0" | ||
| msrv="1.85.0" |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| 1.88.0 | ||
| 1.90.0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.