move debug

This commit is contained in:
Jonathan Kelley 2024-03-06 17:59:05 -08:00
parent 8df87c64c0
commit 99748a611c
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -10,10 +10,11 @@ fn main() {
// If the hash matches the one on disk, we're good and don't need to update bindings
let expected = include_str!("src/js/hash.txt").trim();
if expected == hash.to_string() {
panic!("Hashes match, no need to update bindings. {expected} != {hash}",);
return;
}
panic!("Hashes match, no need to update bindings. {expected} != {hash}",);
// Otherwise, generate the bindings and write the new hash to disk
// Generate the bindings for both native and web
gen_bindings("common", "common");