Function re_build_tools::compute_file_hash
source · pub fn compute_file_hash(path: impl AsRef<Path>) -> String
Expand description
Given a file path, computes the sha256 hash of its contents and returns an hexadecimal string for it.
This will automatically emit a rerun-if-changed
clause for the specified file.
Panics if the file doesn’t exist.