Skip to content

Commit

Permalink
fix: cargo rerun if binary files are changed
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOLAND committed Aug 20, 2024
1 parent a930608 commit 1055166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ fn hex_to_bytes(hex_str: &str) -> Result<Vec<u8>, KzgError> {
.map_err(|e| KzgError::InvalidHexFormat(format!("Failed to decode hex: {}", e)))
}


pub fn load_trusted_setup_file_brute() -> Result<KzgSettingsOwned, KzgError> {
let trusted_setup_file: Vec<String> = TRUSTED_SETUP_FILE
.split('\n')
Expand Down Expand Up @@ -169,6 +168,8 @@ fn expand_root_of_unity(root: Scalar, width: usize) -> Result<Vec<Scalar>, KzgEr
}

fn main() {
println!("cargo:rerun-if-changed=src/trusted_setup.rs"); // Re-run this build script if the `g1.bin`,`g2.bin`, or `roots_of_unity.bin` files are changed

let KzgSettingsOwned {
roots_of_unity,
g1_points,
Expand Down

0 comments on commit 1055166

Please sign in to comment.