From 68f08ae09f96f839c8d644e0b79f662e0012b501 Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Mon, 5 Aug 2024 16:16:05 +0300 Subject: [PATCH] chore(gateway): rename cairo_lang_compiler file --- crates/gateway/src/compilation.rs | 2 +- .../src/{compile.rs => cairo_lang_compiler.rs} | 0 crates/starknet_sierra_compile/src/compile_test.rs | 2 +- crates/starknet_sierra_compile/src/lib.rs | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename crates/starknet_sierra_compile/src/{compile.rs => cairo_lang_compiler.rs} (100%) diff --git a/crates/gateway/src/compilation.rs b/crates/gateway/src/compilation.rs index bc6ef96a1ca..8fdae83ae95 100644 --- a/crates/gateway/src/compilation.rs +++ b/crates/gateway/src/compilation.rs @@ -5,7 +5,7 @@ use cairo_lang_starknet_classes::casm_contract_class::CasmContractClass; use cairo_lang_starknet_classes::contract_class::ContractClass as CairoLangContractClass; use starknet_api::core::CompiledClassHash; use starknet_api::rpc_transaction::RpcDeclareTransaction; -use starknet_sierra_compile::compile::CairoLangSierraToCasmCompiler; +use starknet_sierra_compile::cairo_lang_compiler::CairoLangSierraToCasmCompiler; use starknet_sierra_compile::config::SierraToCasmCompilationConfig; use starknet_sierra_compile::utils::into_contract_class_for_compilation; use starknet_sierra_compile::SierraToCasmCompiler; diff --git a/crates/starknet_sierra_compile/src/compile.rs b/crates/starknet_sierra_compile/src/cairo_lang_compiler.rs similarity index 100% rename from crates/starknet_sierra_compile/src/compile.rs rename to crates/starknet_sierra_compile/src/cairo_lang_compiler.rs diff --git a/crates/starknet_sierra_compile/src/compile_test.rs b/crates/starknet_sierra_compile/src/compile_test.rs index 30afaa24e7e..badb69f8e96 100644 --- a/crates/starknet_sierra_compile/src/compile_test.rs +++ b/crates/starknet_sierra_compile/src/compile_test.rs @@ -6,7 +6,7 @@ use cairo_lang_starknet_classes::allowed_libfuncs::AllowedLibfuncsError; use mempool_test_utils::{get_absolute_path, FAULTY_ACCOUNT_CLASS_FILE, TEST_FILES_FOLDER}; use rstest::{fixture, rstest}; -use crate::compile::{CairoLangSierraToCasmCompiler, CompilationUtilError}; +use crate::cairo_lang_compiler::{CairoLangSierraToCasmCompiler, CompilationUtilError}; use crate::config::SierraToCasmCompilationConfig; use crate::test_utils::contract_class_from_file; use crate::SierraToCasmCompiler; diff --git a/crates/starknet_sierra_compile/src/lib.rs b/crates/starknet_sierra_compile/src/lib.rs index d17a287aeb3..449a69ce5ef 100644 --- a/crates/starknet_sierra_compile/src/lib.rs +++ b/crates/starknet_sierra_compile/src/lib.rs @@ -4,7 +4,7 @@ use cairo_lang_starknet_classes::contract_class::ContractClass; use crate::errors::CompilationUtilError; -pub mod compile; +pub mod cairo_lang_compiler; pub mod config; pub mod errors; pub mod utils;