github starkware-libs/cairo v1.0.0-alpha.7

latest releases: v2.12.4-dev.0, v2.12.3, v2.12.2...
2 years ago

Note: This version is not yet supported on starknet!

  • Automatic withdraw_gas calls
    • Added automatic addition of withdraw_gas_all calls to cycles in your Cairo code. That is, you no more need to manually add it anywhere.
  • Added basic docs
  • u256 division
    • / and % operators for u256.
  • Removed turbofish need in many places
  • Span::slice()
  • Poseidon support (Not in starknet yet)
  • Inferred literal types
  • match and .expect() optimizations
  • Support for loop expr:
    let res = loop {; break expr; };
  • panic_with_felt252()
  • BoundedInt trait
    • BoundedInt::max() and BoundedInt::min()
  • Index operator
  • Oct and bin literals
  • Destructors
    • Destruct trait for destructing non Droppable objects such as Dict
  • Span pop_back
  • #[should_panic] attribute syntax change, = was replaced with : to match named function arguments syntax:
    #[should_panic(expected: ('panic_with_felt252()', ))]

Don't miss a new cairo release

NewReleases is sending notifications on new releases.