I’m writing a text editor in rust. It’s a binary and a lib that is only used by this one binary.
When compiling, I would like a way to see dead code (IE lib code that might be public, but is not used by the bin).
When running tests, I would like to see all dead code. This would work as a poor’s man code coverage to check what code is being exercised by the tests.
Is there a way to do one, or both?