Skip to content

Releases: starkware-libs/cairo

v2.7.0-dev.0

22 May 18:14
Compare
Choose a tag to compare

Cairo compiler.

v2.6.3

12 Mar 09:23
2203a47
Compare
Choose a tag to compare

Bug Fixes

  • Fix for remapping optimization. #5243

Full Changelog: v2.6.2...v2.6.3

v2.6.2

08 Mar 14:28
fb76dd9
Compare
Choose a tag to compare

Bug Fixes

  • Fix cfg attribute for TEST_CLASS_HASH. #5219

Full Changelog: v2.6.1...v2.6.2

v2.6.1

06 Mar 12:33
52140f5
Compare
Choose a tag to compare

Bug Fixes

  • Removing special handling for struct deconstruct in Sierra-Gen, invalidates known stack, to match Sierra. #5205

Full Changelog: v2.6.0...v2.6.1

v2.6.0

04 Mar 13:16
5aa90bc
Compare
Choose a tag to compare

This is the Cairo version associated with Starknet 0.13.1. Contracts written with 2.6.0 are not declarable on Starknet until the upgrade.

Major Updates

  • Added support for gas coupons.
    • Gas coupons are a way to pay for calling a function, in a different place then the actual function call.
    • Allows support for recursive destructs (as we can hold such a coupon for the recursive destruct call in the recursive object).
    • Only available with experimental flags.
  • Support for complex consts (Non-Zero, struct, enum).
  • More aggressive function inlining heuristics.

New Feautres

  • Better manual gas handling - if gas is handled manually - gas withdrawal is not automatically added. #4880
  • Added if-let expression support.
  • Added support for underscore pattern in match on tuples. #4996
  • Add cmp::minmax function by @delaaxe in #4981
  • Added while let support.
  • Add remaining assert_xx! comparison test macros by @iamvukasin in #4936
  • Add TryInto<u512, u256> by @delaaxe in #5031
  • feat: add num::traits::ops::OverflowingAdd trait by @enitrat in #4988
  • feat: OverflowingSub trait by @enitrat in #5164
  • feat: OverflowingMul trait by @enitrat in #5172
  • feat: wrapping traits by @enitrat in #5175
  • Fixed array support [1, 4, 5] of type [felt252; 3].
    • No support for conversion into a span for Index access yet, basically equivalent to (felt252, felt252, felt252) for the time being.

Optimizations

  • Improved performance for ecdsa. #4985
  • Add split_structs optimization - preventing carry of full structs merges due to partial changes. #5034
  • Add scrub units optimization.

Bug Fixes

  • if let inside loops properly works. #5016
  • Fix bug in local variables aliasing. #5028
  • Fixed struct formatting. Closing issue #5032. #5062
  • Fix enable ap tracking detection bug. #5073
  • fix: enum store derive by @enitrat in #5191

Other updates

New Contributors

Full Changelog: v2.5.4...v2.6.0

v2.6.0-rc.1

14 Feb 14:27
6200713
Compare
Choose a tag to compare

New Features

  • Support for non-zero consts at the Sierra level.
  • const_as_immediate in Sierra as an addition to the existing const_as_box.
  • Added while let support.
  • Add remaining assert_xx! comparison test macros by @iamvukasin in #4936
  • Add TryInto<u512, u256> by @delaaxe in #5031

Optimizations

  • Add split_structs optimization - preventing carry of full structs merges due to partial changes. #5034

Bug Fixes

  • if let inside loops properly works. #5016
  • Fix bug in local variables aliasing. #5028

New Contributors

Full Changelog: v2.6.0-rc.0...v2.6.0-rc.1

v2.5.4

14 Feb 11:13
f42bf29
Compare
Choose a tag to compare

Bug fixes

  • Fixed struct pattern formatting. Fixes issue #5032. #5062
  • Added pub for storage member modules. #5065
  • Prevented pub construct cancellation in cases of differing user types. #4938

Full Changelog: v2.5.3...v2.5.4

v2.6.0-rc.0

06 Feb 16:38
7c70efd
Compare
Choose a tag to compare

This is the Cairo version associated with Starknet 0.13.1. Contracts written with 2.6.0 are not declarable on Starknet until the upgrade.

Major Updates

  • Added support for gas coupons.
    • Gas coupons are a way to pay for calling a function, in a different place then the actual function call.
    • Allows support for recursive destructs (as we can hold such a coupon for the recursive destruct call in the recursive object).
    • Only available with experimental flags.
  • Support for const simple value, as well as wrapping structs and enums of these in Sierra.

New Feautres

  • Better manual gas handling - if gas is handled manually - gas withdrawal is not automatically added. #4880
  • Added if-let expression support.
  • Added support for underscore pattern in match on tuples. #4996
  • Add cmp::minmax function by @delaaxe in #4981

Optimizations

  • Improved performance for ecdsa. #4985

New Contributors

Full Changelog: v2.5.3...v2.6.0-rc.0

v2.5.3

01 Feb 09:12
2789b60
Compare
Choose a tag to compare

Bug Fixes

  • Allow renaming a variable twice as it might happen in some cases. #4967

Full Changelog: v2.5.2...v2.5.3

v2.5.2

31 Jan 12:17
5d96b8b
Compare
Choose a tag to compare

Bug Fixes

  • Fixed execution order of struct-construct to stated member ordering. #4947
  • Fixed while formatting. #4958
  • Fixed bug in optimizing out code. #4961

Full Changelog: v2.5.1...v2.5.2