Skip to content

build(native): reduce release binary size - #315

Merged
chenjiahan merged 4 commits into
mainfrom
chenjiahan/build-nightly-location-detail
Aug 11, 2026
Merged

build(native): reduce release binary size#315
chenjiahan merged 4 commits into
mainfrom
chenjiahan/build-nightly-location-detail

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

Pin Rust to nightly-2026-04-16 and enable -Zlocation-detail=none only for local and CI release native builds. This removes source locations from panic metadata without changing the dev or CI profile flags.

Paired macOS arm64 builds from the same commit and nightly toolchain:

Release build Binary size Change
Without -Zlocation-detail=none 1,066,560 bytes
With -Zlocation-detail=none 1,016,928 bytes -49,632 bytes (-4.65%)

The existing rs fmt --check benchmark showed no statistically significant execution-time change.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --profile ci --workspace --all-targets --locked -- -D warnings
  • cargo test --profile ci --workspace --locked
  • pnpm --filter rstack build:native:release
  • pnpm build
  • pnpm check
  • pnpm --filter rstack test (223 tests)

Related Links

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8c5c75c
Status: ✅  Deploy successful!
Preview URL: https://18470ebb.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-build-nightly-loc.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan marked this pull request as ready for review August 11, 2026 08:16
@chenjiahan
chenjiahan merged commit ac38608 into main Aug 11, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/build-nightly-location-detail branch August 11, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant