cargo-bloat
cargo-bloat copied to clipboard
--release flag fails
win10 x64 msys2 ucrt64
When passing --release, cargo-bloat fails to find the executable:
$ cargo bloat --release -n 10
Compiling example v0.1.0 (C:\Users\jgardona\Workspace\rust\example)
Finished release [optimized] target(s) in 6.74s
Error: failed to open a file 'C:\Users\jgardona\Workspace\rust\example\target\release\example.pdb'.
Does this file actually exist? If so, try running it through https://github.com/willglynn/pdb/blob/master/examples/pdb_symbols.rs example. If it fails as well - then it's a pdb
crate bug. Or we have to update ours.
My folder doesn't have the pdb file, but I think its working as expected. Doesn't --release flag removes it? When running for debug it works as expected.
Also, my projects are using the following configuration for [profile.release]
[profile.release]
strip = true
lto = "thin"
opt-level = "z"
panic = "abort"
Try removing strip = true