我经常想在发布模式下使用debug = true
进行编译,以便我可以更轻松地读取生成的程序集。我目前正在这样做:
[profile.release]
debug = true
但我不想在我的最终版本构建中使用任何调试符号。我想做点什么:
[profile.custom]
debug = true
opt-level = 3
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'unwind'
然后运行
cargo build --custom
我看过the documentation无济于事。