Skip to content

Commit

Permalink
Bump to 2.6.3 + Remove gas checks (#1709)
Browse files Browse the repository at this point in the history
* bumping compiler version and removing gas

* Update cairo-lang dependencies to 2.6.3

* Update CasmContractClass import

* Bump corelib

* Un-comment additional_initialization

* Allow return_type_id to be None

* Compile with skip_auto_withdraw_gas

* Use custom impl of poseidon_hash_many

* Yeet create_metadata

* Remove unused imports

* Add missing imports

* Remove additional initialization

* Update lock

* fix

* Add instructions to add Scarb.toml setting in README

* Add temp fix for nullable_box_vec

* Ignore GasBuiltin when deserializng outputs

* Add Known bugs & issues section

* Fix run_dict_with_struct

* Fix compilation for tests

* Add changelog entry

* Fix non-optional dependency

---------

Co-authored-by: Ariel Elperin <[email protected]>
Co-authored-by: Pedro Fontana <[email protected]>
Co-authored-by: Pedro Fontana <[email protected]>
  • Loading branch information
4 people committed Apr 25, 2024
1 parent bc276ce commit 2e24b6a
Show file tree
Hide file tree
Showing 15 changed files with 245 additions and 154 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

* feat: Implement `CairoPie::read_zip_file`[#1729](https://github.com/lambdaclass/cairo-vm/pull/1729)

* feat: Bump to 2.6.3 + Remove gas checks[#1709](https://github.com/lambdaclass/cairo-vm/pull/1709)
* Bump cairo_lang crates & corelib to v2.6.3
* Disable gas checks when compiling to sierra & casm
* Add `Known bugs & issues` segment to README, poining out issues derived from the removal of gas checks and cairo v2.6.3

* feat: Implement running from `CairoPie`[#1720](https://github.com/lambdaclass/cairo-vm/pull/1720)
* Add function `cairo_run_pie`
* Add `CairoPie` methods `run_validity_checks` & `check_pie_compatibility`
Expand Down
121 changes: 71 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ thiserror-no-std = { version = "2.0.2", default-features = false }
bitvec = { version = "1", default-features = false, features = ["alloc"] }

# Dependencies for cairo-1-hints feature
cairo-lang-starknet = { version = "2.5.4", default-features = false }
cairo-lang-casm = { version = "2.5.4", default-features = false }
cairo-lang-starknet = { version = "2.6.3", default-features = false }
cairo-lang-casm = { version = "2.6.3", default-features = false }

cairo-lang-compiler = { version = "2.5.4", default-features = false }
cairo-lang-sierra-to-casm = { version = "2.5.4", default-features = false }
cairo-lang-sierra = { version = "2.5.4", default-features = false }
cairo-lang-runner = { version = "2.5.4", default-features = false }
cairo-lang-utils = { version = "2.5.4", default-features = false }
cairo-lang-starknet-classes = { version = "2.6.3", default-features = false }
cairo-lang-compiler = { version = "2.6.3", default-features = false }
cairo-lang-sierra-to-casm = { version = "2.6.3", default-features = false }
cairo-lang-sierra = { version = "2.6.3", default-features = false }
cairo-lang-runner = { version = "2.6.3", default-features = false }
cairo-lang-utils = { version = "2.6.3", default-features = false }

# TODO: check these dependencies for wasm compatibility
ark-ff = { version = "0.4.2", default-features = false }
Expand Down
7 changes: 4 additions & 3 deletions cairo1-run/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ keywords.workspace = true
cairo-vm = {workspace = true, features = ["std", "cairo-1-hints", "clap"]}
serde_json = { workspace = true }

cairo-lang-sierra-type-size = { version = "2.5.4", default-features = false }
cairo-lang-sierra-ap-change = { version = "2.5.4", default-features = false }
cairo-lang-sierra-gas = { version = "2.5.4", default-features = false }
cairo-lang-sierra-type-size = { version = "2.6.3", default-features = false }
cairo-lang-sierra-ap-change = { version = "2.6.3", default-features = false }
cairo-lang-sierra-gas = { version = "2.6.3", default-features = false }
cairo-lang-starknet-classes.workspace = true
cairo-lang-sierra-to-casm.workspace = true
cairo-lang-compiler.workspace = true
cairo-lang-sierra.workspace = true
Expand Down
Loading

0 comments on commit 2e24b6a

Please sign in to comment.