diff --git a/Cargo.toml b/Cargo.toml index 087b9ead..cb4c1bbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,5 +45,8 @@ opt-level = "s" codegen-units = 1 incremental = false strip = true -# debug = true # for profiling (turn off otherwise) -# split-debuginfo = "packed" # only enable when `debug = true`` + +[profile.release-with-debug] +inherits = "release" +strip = false # do not strip debug symbols +debug = true # enable debug symbols