Just a random thought that occurred to me this morning. I was thinking maybe there could be some function to show the differences between one version and another, which could be useful if there is no git-type repository, or even if there is ( since there is no guarantee the repository matches ).
I think what you want already exists and is called diff.rs.
Both of the code auditing tools (cargo-crev and cargo-vet) also include diff commands.