Skip to content

Strip debug symbols from gem release shared object#610

Open
omohokcoj wants to merge 1 commit into
bytecodealliance:mainfrom
omohokcoj:strip
Open

Strip debug symbols from gem release shared object#610
omohokcoj wants to merge 1 commit into
bytecodealliance:mainfrom
omohokcoj:strip

Conversation

@omohokcoj

@omohokcoj omohokcoj commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Related issue: #604
It reduces ruby gem download size from ~190MB to ~29MB

Copilot AI review requested due to automatic review settings June 7, 2026 06:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR changes the Rust release profile configuration to reduce the amount of debug information shipped in release artifacts.

Changes:

  • Removed debug = 2 from [profile.release]
  • Enabled strip = true for release builds to strip debug symbols

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Cargo.toml
[profile.release]
codegen-units = 1 # more llvm optimizations
debug = 2 # make perfomance engineers happy
strip = true # strip debug symbols
@jbourassa

Copy link
Copy Markdown
Collaborator

👍 I can get behind this, folks working on the performance of the crate can still enable the debug symbols when needed.

@jacobsteves

Copy link
Copy Markdown
Collaborator

I'm good with this too, I believe it'll actually fix #581 as well (see this comment)

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.

4 participants