-
Notifications
You must be signed in to change notification settings - Fork 406
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
Open
oleonardolima
wants to merge
4
commits into
bitcoindevkit:master
Choose a base branch
from
oleonardolima:chore/bump-msrv-to-1.85.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 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 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 |
---|---|---|
|
@@ -28,8 +28,7 @@ jobs: | |
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 +38,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 +63,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 +95,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 +114,10 @@ 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 | ||
components: rustfmt | ||
- name: Check fmt | ||
run: cargo fmt --all --check | ||
|
@@ -156,13 +132,12 @@ 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] | ||
cache: true | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -186,13 +161,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: ${{ 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
Oops, something went wrong.
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.