diff options
| author | Ian Ker-Seymer <ian.kerseymer@shopify.com> | 2024-05-30 22:33:12 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-02-13 06:28:12 +0000 |
| commit | 54ffff05f9f5422b018ee64028f808a8d2bda011 (patch) | |
| tree | 3c65182ac175875bf4b73f651148b26c007b3e99 | |
| parent | 27204dc8ccd028d4c670be572d2c70abf41f1ce2 (diff) | |
[ruby/rubygems] Include debug symbols by default in release builds for rust gems
https://github.com/ruby/rubygems/commit/26e419f157
| -rw-r--r-- | lib/bundler/templates/newgem/Cargo.toml.tt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/Cargo.toml.tt b/lib/bundler/templates/newgem/Cargo.toml.tt index f5a460c9bb..cd00f97e5a 100644 --- a/lib/bundler/templates/newgem/Cargo.toml.tt +++ b/lib/bundler/templates/newgem/Cargo.toml.tt @@ -5,3 +5,9 @@ [workspace] members = ["./ext/<%= config[:name] %>"] resolver = "2" + +[profile.release] +# By default, debug symbols are stripped from the final binary which makes it +# harder to debug if something goes wrong. It's recommended to keep debug +# symbols in the release build so that you can debug the final binary if needed. +debug = true |
