News for hackers. Stuff that matters.
Re:Native Reflection in Rust by armchairhacker on Thursday December 15, 2022 @04:00PM (#34005705)
Does this still work if the application is complied in release mode or with optimizations?

Even if not, this is still very useful for debugging

Re:Native Reflection in Rust by jswrenn on Thursday December 15, 2022 @04:18PM (#34005899)
It only works if DWARF is generated. By default, the `release` profile of Cargo sets `debug = false` [0]. But, it's quite easy to override this setting, and have a build that is both optimized and includes debuginfo.

[0]: https://doc.rust-lang.org/cargo/reference/profiles.html#rele...