Skip to content

Releases: starkware-libs/cairo

v2.1.0-rc3

02 Aug 10:31
4a178bf
Compare
Choose a tag to compare

Enabled serialization of contracts using Unary minus operator. #3809

Full Changelog: v2.1.0-rc2...v2.1.0-rc3

v2.1.0-rc2

25 Jul 11:07
969b729
Compare
Choose a tag to compare

Fixed bug in syscall simulation of secp256k1_get_point_from_x using the wrong parity. #3768

v2.1.0-rc1

20 Jul 12:00
c3388d9
Compare
Choose a tag to compare

Cairo compiler.

Bug Fixes

  • Added dependent types to the ABI.

Full Changelog: v2.1.0-rc0...v2.1.0-rc1

v2.1.0-rc0

16 Jul 08:58
Compare
Choose a tag to compare

Cairo compiler.

Breaking Changes

  • Add --single-file flag for all compilations based on a single cairo file (no crate). #3533
  • Trait starknet::StorageAccess updates:
    • Renamed to starknet::Store.
    • Updated derive for it to be starknet::Store.
    • Removed _internal from its methods.
    • Made size not accept a value, in preparation for it being an associated constant for the trait.

Bug Fixes

  • Fix account contract core interface by @gaetbout in #3381
  • Fix break returns never type (allowing let x = if .. { ... } else { break; } expressions). #3412
  • Fixed struct generic impl args compiler panic. #2995.
  • Add empty calldata when no constructor validation by @ericnordelo in #3681

New Features

  • Formatter Improvements.
  • Changed debug::print to print hex values. #3377
  • Add pop logs to testing by @ericnordelo in #3300
    • pop_log_raw and pop_log<EventType> for testing contracts emitted events.
  • Introduce a consteval_int macro to compute const integers at compile-time by @wraitii in #3132
  • replace_class support in test runner. #3416
  • Added fully functional and approved u256_divmod.
  • Added support for all unsigned integers bitwise operations.
  • Add array! macro for one-liner initialization of arrays. #3501
  • Branch inversion optimization.
    • if !cond { <code_1> } else { <code_2> } into if cond { <code_2> } else { <code_1> }.
  • Full support for secp256k1.
  • Full support for Keccak.
  • Add safe dispatchers implementation by @Arcticae in #3591
  • Using downcasts for more efficient multiplications. #3616
  • Feat/support empty variants by @neotheprogramist in #3569
  • Updated gas costs for syscalls to be up to date with actual charged gas.
  • feat: PartialEq for 2,3,4-tuples by @milancermak in #3556
  • Added BoolIntoFelt252. #3667
  • feat:serde for Result enum by @PhilippeR26 in #3560
  • Better diagnostics for literals for unsupported types. #3675
  • Added starknet::Store for tuples up to size 4. #3674
  • Added StorePacking trait. #3676
  • Derive Store impl for enums by @maciejka in #3460

New Contributors

Full Changelog: v2.0.2...v2.1.0-rc0

v2.0.2

10 Jul 17:17
79b34bf
Compare
Choose a tag to compare

Cairo compiler.

v2.0.1

04 Jul 15:01
cf142a2
Compare
Choose a tag to compare

Cairo compiler.

v2.0.0-rc7

02 Jul 13:33
96e1399
Compare
Choose a tag to compare

Cairo compiler.

v2.0.0

02 Jul 16:19
87570bd
Compare
Choose a tag to compare

Cairo compiler.

v2.0.0-rc6

28 Jun 16:33
54bd0e6
Compare
Choose a tag to compare

Cairo compiler.

v1.1.1

28 Jun 08:09
c6b003c
Compare
Choose a tag to compare

Cairo compiler.