For checking compatibility between a client and a server, I'd like to compare the versions of their shared code. I have implemented this by a build.rs that creates a hash of the content of all files under src/, but it seems brittle. I want to make sure I calculate a hash of the files that are actually used in the build. Surely this is already done at some point during the build process.
There is a feature to Add hash of source files in debug info, which sounds promising, but it adds the data to the debug information, and I want to get it at runtime.