From e8a8f2df0c674c142cef0c9076e682d3ceb73c7c Mon Sep 17 00:00:00 2001 From: TomerStarkware Date: Thu, 5 Mar 2026 01:54:05 +0200 Subject: [PATCH] changed the cairo native binary to based on a fixed commit and not a branch --- crates/apollo_compile_to_native/build.rs | 2 +- crates/apollo_compile_to_native/src/constants.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/apollo_compile_to_native/build.rs b/crates/apollo_compile_to_native/build.rs index 231c82bb518..6ef750f3e99 100644 --- a/crates/apollo_compile_to_native/build.rs +++ b/crates/apollo_compile_to_native/build.rs @@ -19,7 +19,7 @@ fn install_starknet_native_compile() { // TODO(Avi): Revert to `--version` install once cairo-native publishes a release with blake // builtin support. let cargo_install_args = - &[binary_name, "--git", CAIRO_NATIVE_GIT_URL, "--branch", CAIRO_NATIVE_GIT_BRANCH]; + &[binary_name, "--git", CAIRO_NATIVE_GIT_URL, "--rev", CAIRO_NATIVE_GIT_REV]; install_compiler_binary(binary_name, required_version, cargo_install_args, &out_dir()); } diff --git a/crates/apollo_compile_to_native/src/constants.rs b/crates/apollo_compile_to_native/src/constants.rs index bf156e4159a..c0099f80048 100644 --- a/crates/apollo_compile_to_native/src/constants.rs +++ b/crates/apollo_compile_to_native/src/constants.rs @@ -7,7 +7,7 @@ pub(crate) const CAIRO_NATIVE_BINARY_NAME: &str = "starknet-native-compile"; // TODO(Avi): Remove git URL/branch constants once cairo-native publishes a release with blake // builtin support, and revert to installing from crates.io. pub const CAIRO_NATIVE_GIT_URL: &str = "https://github.com/lambdaclass/cairo_native"; -pub const CAIRO_NATIVE_GIT_BRANCH: &str = "tomer/blake_builtin"; +pub const CAIRO_NATIVE_GIT_REV: &str = "b3fea26c8a3f3a48d0f1b473d7439435c6389083"; // Kept for the version check on the installed binary (--version output). pub const REQUIRED_CAIRO_NATIVE_VERSION: &str = "0.9.0-rc.1";