I have a rust program that panicked with the message
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseFloatError { kind: Invalid }', src/functions.rs.inc:58:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
I searched hard, but I cannot find any hints how to set the desired environment variable in cargo or rust. I found on my Linux machine /home/pi/.cargo/env
and added RUST_BACKTRACE=1
in that file, but it does not makes a difference.
How do I set RUST_BACKTRACE=1
to find the reason for suddenly occurring panics?