From a35756623da676aa2101459af50383b8c0b474ab 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 | 6 ++---- crates/starknet_sierra_compile/src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 6 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 fa83b249e45..60fbbdbf75c 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::CairoLangCompiler; +use starknet_sierra_compile::cairo_lang_compiler::CairoLangCompiler; 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 74526c21fd8..6e1d1321422 100644 --- a/crates/starknet_sierra_compile/src/compile_test.rs +++ b/crates/starknet_sierra_compile/src/compile_test.rs @@ -6,16 +6,14 @@ 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::{CairoLangCompiler, CompilationUtilError}; +use crate::cairo_lang_compiler::{CairoLangCompiler, CompilationUtilError}; use crate::config::SierraToCasmCompilationConfig; use crate::test_utils::contract_class_from_file; use crate::SierraToCasmCompiler; #[fixture] fn compiler() -> impl SierraToCasmCompiler { - CairoLangCompiler { - config: SierraToCasmCompilationConfig { max_bytecode_size: 81920 }, - } + CairoLangCompiler { config: SierraToCasmCompilationConfig { max_bytecode_size: 81920 } } } #[rstest] 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;