Skip to content

Commit a80bb64

Browse files
avi-starkwareclaude
andcommitted
apollo_infra_utils,apollo_compile_to_native: add compiler version text files
Create plain text files containing compiler binary versions as the single source of truth. Rust constants now use include_str!().trim_ascii_end() to read from these files. Shell scripts and Dockerfiles will read them with cat in a follow-up. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3eb5573 commit a80bb64

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

crates/apollo_compile_to_native/src/constants.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
pub(crate) const CAIRO_NATIVE_BINARY_NAME: &str = "starknet-native-compile";
66

7-
pub const REQUIRED_CAIRO_NATIVE_VERSION: &str = "0.9.0-rc.6";
7+
pub const REQUIRED_CAIRO_NATIVE_VERSION: &str =
8+
include_str!("native_compiler_version.txt").trim_ascii_end();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.9.0-rc.6

crates/apollo_infra_utils/src/cairo_compiler_version.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
#[path = "cairo_compiler_version_test.rs"]
33
mod cairo_compiler_version_test;
44

5-
pub const CAIRO1_COMPILER_VERSION: &str = "2.17.0-rc.4";
5+
pub const CAIRO1_COMPILER_VERSION: &str =
6+
include_str!("cairo_compiler_version.txt").trim_ascii_end();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.17.0-rc.4

0 commit comments

Comments
 (0)