Logging commands executed by Cargo

#1

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.

0 Likes

#2

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

0 Likes

#3

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!

0 Likes