From 0cf8b782ffb7af65191e8c702cb503116177a0ec Mon Sep 17 00:00:00 2001 From: andrews05 Date: Tue, 7 Apr 2026 09:18:00 +1200 Subject: [PATCH] Use build-std to reduce binary size (#807) --- .github/workflows/oxipng.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/oxipng.yml b/.github/workflows/oxipng.yml index fa879483..7c033914 100644 --- a/.github/workflows/oxipng.yml +++ b/.github/workflows/oxipng.yml @@ -55,7 +55,6 @@ jobs: env: CARGO_BUILD_TARGET: ${{ matrix.target }} - RUSTFLAGS: '-Zlocation-detail=none' steps: - name: Checkout source @@ -74,7 +73,7 @@ jobs: with: toolchain: nightly target: ${{ env.CARGO_BUILD_TARGET }} - components: clippy, rustfmt + components: clippy, rustfmt, rust-src cache-bin: false cache-shared-key: cache @@ -125,7 +124,9 @@ jobs: run: cargo doc --release --no-deps - name: Build CLI binary - run: cargo build --release + run: cargo build --release -Zbuild-std + env: + RUSTFLAGS: '-Zlocation-detail=none -Zunstable-options -Cpanic=immediate-abort' - name: Upload CLI binary as artifact uses: actions/upload-artifact@v7