feat: add build sha to parser.c header comment

This commit is contained in:
dundargoc 2024-10-24 12:44:37 +02:00 committed by dundargoc
parent 74481399df
commit dc4e232e6e
3 changed files with 41 additions and 2 deletions

View file

@ -60,6 +60,8 @@ fn web_playground_files_present() -> bool {
paths.iter().all(|p| Path::new(p).exists())
}
// When updating this function, don't forget to also update generate/build.rs which has a
// near-identical function.
fn read_git_sha() -> Option<String> {
let crate_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());