How to build a Rust project in release mode with debug symbols?
Hi everyone! I started learning Rust and am writing a small console application for working with files. For debugging, I usually run `cargo run`, but when I want to check performance on real data, I use `cargo build --release`. The problem is that when the program crashes in a release build, I get a completely useless stack trace. Instead of normal function names and line numbers, I only see memory addresses, and the `backtrace` function outputs something like `0x55a2b3c4d5e6` instead of `my_module::process_file`.
Here's an example of code that crashes with an error:
```rust
use std::fs;
fn main() {
let data = fs::read_to_string("config.toml").unwrap();
let parsed: Vec = data
.split(',')
.map(|s| s.trim().parse::().unwrap())
.collect();
```