diff --git a/compiler/noirc_frontend/build.rs b/compiler/noirc_frontend/build.rs deleted file mode 100644 index 53ae9489168..00000000000 --- a/compiler/noirc_frontend/build.rs +++ /dev/null @@ -1,15 +0,0 @@ -use std::path::PathBuf; - -const BLNS_JSON_PATH: &str = "BLNS_JSON_PATH"; - -fn main() -> Result<(), String> { - let out_dir = std::env::var("OUT_DIR").unwrap(); - - let dest_path = PathBuf::from(out_dir.clone()).join("blns.base64.json"); - let dest_path_str = dest_path.to_str().unwrap(); - - println!("cargo:rustc-env={BLNS_JSON_PATH}={dest_path_str}"); - std::fs::copy("./src/blns/blns.base64.json", dest_path).unwrap(); - - Ok(()) -} diff --git a/compiler/noirc_frontend/src/blns/LICENSE b/compiler/noirc_frontend/src/lexer/blns/LICENSE similarity index 100% rename from compiler/noirc_frontend/src/blns/LICENSE rename to compiler/noirc_frontend/src/lexer/blns/LICENSE diff --git a/compiler/noirc_frontend/src/blns/README.md b/compiler/noirc_frontend/src/lexer/blns/README.md similarity index 100% rename from compiler/noirc_frontend/src/blns/README.md rename to compiler/noirc_frontend/src/lexer/blns/README.md diff --git a/compiler/noirc_frontend/src/blns/blns.base64.json b/compiler/noirc_frontend/src/lexer/blns/blns.base64.json similarity index 100% rename from compiler/noirc_frontend/src/blns/blns.base64.json rename to compiler/noirc_frontend/src/lexer/blns/blns.base64.json diff --git a/compiler/noirc_frontend/src/lexer/lexer.rs b/compiler/noirc_frontend/src/lexer/lexer.rs index cb21f58e58b..265b9e4b5a3 100644 --- a/compiler/noirc_frontend/src/lexer/lexer.rs +++ b/compiler/noirc_frontend/src/lexer/lexer.rs @@ -1160,7 +1160,7 @@ mod tests { fn test_big_list_of_naughty_strings() { use std::mem::discriminant; - let blns_contents = include_str!(env!("BLNS_JSON_PATH")); + let blns_contents = include_str!("./blns/blns.base64.json"); let blns_base64: Vec = serde_json::from_str(blns_contents).expect("BLNS json invalid"); for blns_base64_str in blns_base64 {