From d1c9dda036438d4d329b9f7fdf2893bf1c5c7cb2 Mon Sep 17 00:00:00 2001 From: Roberto Catalan Date: Mon, 8 May 2023 13:01:15 -0300 Subject: [PATCH] Add Cairo 1 considerations for Gitignore and Makefile (#1144) * Add ignore for casm and sierra files * Add libfunc experimental for cairo 1 compilation * Add new enty to CHANGELOG --- .gitignore | 2 ++ CHANGELOG.md | 5 +++++ Makefile | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 01c4357d9d..010070081c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ **/*.json !hint_accountant/whitelists/*.json !cairo_programs/manually_compiled/*.json +**/*.casm +**/*.sierra **/*.trace **/*.memory **/*.swp diff --git a/CHANGELOG.md b/CHANGELOG.md index 693fbd7f4d..013b93364d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ #### Upcoming Changes +* Add some small considerations regarding Cairo 1 programs [#1144](https://github.com/lambdaclass/cairo-rs/pull/1144): + + * Ignore Casm and Sierra files + * Add special flag to compile Cairo 1 programs + * Make the VM able to run `CasmContractClass` files under `cairo-1-hints` feature [#1098](https://github.com/lambdaclass/cairo-rs/pull/1098) * Implement `TryFrom for Program` diff --git a/Makefile b/Makefile index 607657d696..2db8e0d77e 100644 --- a/Makefile +++ b/Makefile @@ -101,10 +101,10 @@ COMPILED_SIERRA_CONTRACTS:=$(patsubst $(CAIRO_1_CONTRACTS_TEST_DIR)/%.cairo, $(C COMPILED_CASM_CONTRACTS:= $(patsubst $(CAIRO_1_CONTRACTS_TEST_DIR)/%.sierra, $(CAIRO_1_CONTRACTS_TEST_DIR)/%.casm, $(COMPILED_SIERRA_CONTRACTS)) $(CAIRO_1_CONTRACTS_TEST_DIR)/%.sierra: $(CAIRO_1_CONTRACTS_TEST_DIR)/%.cairo - $(STARKNET_COMPILE) -- $< $@ + $(STARKNET_COMPILE) --allowed-libfuncs-list-name experimental_v0.1.0 $< $@ $(CAIRO_1_CONTRACTS_TEST_DIR)/%.casm: $(CAIRO_1_CONTRACTS_TEST_DIR)/%.sierra - $(STARKNET_SIERRA_COMPILE) -- $< $@ + $(STARKNET_SIERRA_COMPILE) --allowed-libfuncs-list-name experimental_v0.1.0 $< $@ cairo-repo-dir = cairo