build: use rust compiler 1.77.1 for all builds

This commit is contained in:
thunderbiscuit 2024-04-19 14:39:33 -04:00
parent e14124b454
commit 4d737d3393
No known key found for this signature in database
GPG Key ID: 88253696EB836462
14 changed files with 25 additions and 25 deletions

View File

@ -17,7 +17,7 @@ jobs:
strategy: strategy:
matrix: matrix:
rust: rust:
- version: 1.73.0 - version: 1.77.1
clippy: true clippy: true
steps: steps:
- name: "Checkout" - name: "Checkout"

View File

@ -27,8 +27,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 11 java-version: 11
- name: "Set default Rust version to 1.73.0" - name: "Set default Rust version to 1.77.1"
run: rustup default 1.73.0 run: rustup default 1.77.1
- name: "Build bdk-jvm library" - name: "Build bdk-jvm library"
run: | run: |

View File

@ -25,8 +25,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 17 java-version: 17
- name: "Set default Rust version to 1.73.0" - name: "Set default Rust version to 1.77.1"
run: rustup default 1.73.0 run: rustup default 1.77.1
- name: "Install Rust Android targets" - name: "Install Rust Android targets"
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi

View File

@ -24,8 +24,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 17 java-version: 17
- name: "Set default Rust version to 1.73.0" - name: "Set default Rust version to 1.77.1"
run: rustup default 1.73.0 run: rustup default 1.77.1
- name: "Install aarch64 Rust target" - name: "Install aarch64 Rust target"
run: rustup target add aarch64-apple-darwin run: rustup target add aarch64-apple-darwin
@ -54,8 +54,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 17 java-version: 17
- name: "Set default Rust version to 1.73.0" - name: "Set default Rust version to 1.77.1"
run: rustup default 1.73.0 run: rustup default 1.77.1
- name: "Install x86_64-pc-windows-msvc Rust target" - name: "Install x86_64-pc-windows-msvc Rust target"
run: rustup target add x86_64-pc-windows-msvc run: rustup target add x86_64-pc-windows-msvc
@ -94,8 +94,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 17 java-version: 17
- name: "Set default Rust version to 1.73.0" - name: "Set default Rust version to 1.77.1"
run: rustup default 1.73.0 run: rustup default 1.77.1
- name: "Build bdk-jvm library" - name: "Build bdk-jvm library"
run: | run: |

View File

@ -37,8 +37,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 17 java-version: 17
- name: "Set default Rust version to 1.73.0" - name: "Set default Rust version to 1.77.1"
run: rustup default 1.73.0 run: rustup default 1.77.1
- name: "Install Rust Android targets" - name: "Install Rust Android targets"
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi

View File

@ -32,8 +32,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 17 java-version: 17
- name: "Set default Rust version to 1.73.0" - name: "Set default Rust version to 1.77.1"
run: rustup default 1.73.0 run: rustup default 1.77.1
- name: "Run JVM tests" - name: "Run JVM tests"
run: | run: |

View File

@ -37,7 +37,7 @@ just publishlocal
``` ```
## Minimum Supported Rust Version (MSRV) ## Minimum Supported Rust Version (MSRV)
This library should compile with any combination of features with Rust 1.73.0. This library should compile with any combination of features with Rust 1.77.1.
## Contributing ## Contributing
To add new structs and functions, see the [UniFFI User Guide](https://mozilla.github.io/uniffi-rs/) and the [uniffi-examples](https://thunderbiscuit.github.io/uniffi-examples/) repository. To add new structs and functions, see the [UniFFI User Guide](https://mozilla.github.io/uniffi-rs/) and the [uniffi-examples](https://thunderbiscuit.github.io/uniffi-examples/) repository.

View File

@ -38,10 +38,10 @@ _Note that Kotlin version `1.9.23` or later is required to build the library._
git clone https://github.com/bitcoindevkit/bdk-ffi git clone https://github.com/bitcoindevkit/bdk-ffi
``` ```
2. Follow the "General" bdk-ffi ["Getting Started (Developer)"] instructions. 2. Follow the "General" bdk-ffi ["Getting Started (Developer)"] instructions.
3. Install Rust (note that we are currently building using Rust 1.73.0): 3. Install Rust (note that we are currently building using Rust 1.77.1):
```shell ```shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default 1.73.0 rustup default 1.77.1
``` ```
4. Install required targets 4. Install required targets
```sh ```sh

View File

@ -36,10 +36,10 @@ curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh" source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 17.0.2-tem sdk install java 17.0.2-tem
``` ```
2. Install Rust (note that we are currently building using Rust 1.73.0): 2. Install Rust (note that we are currently building using Rust 1.77.1):
```shell ```shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default 1.73.0 rustup default 1.77.1
``` ```
3. Clone this repository. 3. Clone this repository.
```shell ```shell

View File

@ -9,7 +9,7 @@ cd ../bdk-ffi/
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..." echo "Generating native binaries..."
rustup default 1.73.0 rustup default 1.77.1
cargo build --profile release-smaller cargo build --profile release-smaller
echo "Copying linux libbdkffi.so..." echo "Copying linux libbdkffi.so..."

View File

@ -9,7 +9,7 @@ cd ../bdk-ffi/
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..." echo "Generating native binaries..."
rustup default 1.73.0 rustup default 1.77.1
rustup target add aarch64-apple-darwin rustup target add aarch64-apple-darwin
cargo build --profile release-smaller --target aarch64-apple-darwin cargo build --profile release-smaller --target aarch64-apple-darwin

View File

@ -9,7 +9,7 @@ cd ../bdk-ffi/
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..." echo "Generating native binaries..."
rustup default 1.73.0 rustup default 1.77.1
rustup target add x86_64-apple-darwin rustup target add x86_64-apple-darwin
cargo build --profile release-smaller --target x86_64-apple-darwin cargo build --profile release-smaller --target x86_64-apple-darwin

View File

@ -9,7 +9,7 @@ cd ../bdk-ffi/
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..." echo "Generating native binaries..."
rustup default 1.73.0 rustup default 1.77.1
rustup target add x86_64-pc-windows-msvc rustup target add x86_64-pc-windows-msvc
cargo build --profile release-smaller --target x86_64-pc-windows-msvc cargo build --profile release-smaller --target x86_64-pc-windows-msvc

View File

@ -3,7 +3,7 @@
# The results of this script can be used for locally testing your SPM package adding a local package # The results of this script can be used for locally testing your SPM package adding a local package
# to your application pointing at the bdk-swift directory. # to your application pointing at the bdk-swift directory.
rustup install 1.73.0 rustup install 1.77.1
rustup component add rust-src rustup component add rust-src
rustup target add aarch64-apple-ios # iOS arm64 rustup target add aarch64-apple-ios # iOS arm64
rustup target add x86_64-apple-ios # iOS x86_64 rustup target add x86_64-apple-ios # iOS x86_64