Skip to content

v1.0.0-alpha.7

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Apr 12:23
· 3306 commits to main since this release
81c4eb9

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()', ))]