From 3e1fb1e53f4aace9ece0962ec41de386931ede4b Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 16 Apr 2024 23:25:00 -0400 Subject: [PATCH] rust toolchain updated to stable --- .github/workflows/precompile_binaries.yml | 11 +++++++++-- rust/cargokit.yaml | 7 ++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/precompile_binaries.yml b/.github/workflows/precompile_binaries.yml index ec2ea71e..572a15a5 100644 --- a/.github/workflows/precompile_binaries.yml +++ b/.github/workflows/precompile_binaries.yml @@ -20,7 +20,14 @@ jobs: profile: minimal toolchain: stable override: true - + - name: Configure Cargo.toml optimizations + run: | + mkdir -p .cargo + echo "[profile.release]" >> .cargo/config.toml + echo "opt-level = 'z'" >> .cargo/config.toml + echo "lto = true" >> .cargo/config.toml + echo "codegen-units = 1" >> .cargo/config.toml + echo "panic = 'abort'" >> .cargo/config.toml - uses: dart-lang/setup-dart@v1 - uses: subosito/flutter-action@v2 with: @@ -38,4 +45,4 @@ jobs: working-directory: cargokit/build_tool env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} - PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }} + PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }} \ No newline at end of file diff --git a/rust/cargokit.yaml b/rust/cargokit.yaml index f94f555f..4657395e 100644 --- a/rust/cargokit.yaml +++ b/rust/cargokit.yaml @@ -1,9 +1,6 @@ cargo: release: - toolchain: nightly - extra_flags: - - -Z - - build-std=panic_abort,std + toolchain: stable precompiled_binaries: url_prefix: https://github.com/LtbLightning/bdk-flutter/releases/download/precompiled_ - public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b + public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b \ No newline at end of file