`cargo_show_asm` not working

Hey, I want to use the cargo_show_asm package which I have installed using cargo install cargo-show-asm. It works when applied to a "hello world" project.

But when I run cargo asm [parameters] in a more complicated repo (within a workspace) where I need it, I only ever get Error: Cannot locate the path to the asm file or Error: No such file or directory (os error 2)

I thought it could have something to do with the toolchain, because I have a rust-toolchain.toml saying:

[toolchain]
channel = "nightly-2025-07-01"

But removing the file didn't help either.

Any ideas?

I don't know the package, but they do report this error in the Issues, and some possible fixes therein as well.

Yeah thanks. I found that removing lto helps.

You are welcome; glad to know it is fixed.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.