Display cargo constructed rustc command


I want to see the generated rustc command created by cargo.

I recall seeing this once before, sadly I forgot how to do it and searching is failing.


You can use cargo build --verbose to see the rustc commands it runs.

Not this one, it should show rustc -L dependency= --crate-name ... etc etc your suggestion of --verbose just shows dependencies.

cargo build -vv
1 Like