From 54ffff05f9f5422b018ee64028f808a8d2bda011 Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Thu, 30 May 2024 22:33:12 -0400 Subject: [ruby/rubygems] Include debug symbols by default in release builds for rust gems https://github.com/ruby/rubygems/commit/26e419f157 --- lib/bundler/templates/newgem/Cargo.toml.tt | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3