Logging commands executed by Cargo

I'm trying to understand what commands cargo is executing. In my particular case, I can get cargo rustc -- -C -foo to work, but not cargo build. In my situation, I'd rather not have to use cargo, so seeing the commands it executes would be very beneficial.

It looks like one person managed to find a very hacky solution by renaming the rustc and link executables, but I really think this is something that would be helpful generally. Does such a thing exist and I just haven't found it?

P.S. I'm running Ubuntu Linux 18.04/16.04.

cargo build -vv will print out the commands it executes.

Thanks for the quick reply! And yep, that's what I needed. I tried that with rustc but it didn't work, I forgot that I hadn't tried that with cargo. Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.