v1.0.0-alpha.7
github-actions
released this
13 Apr 12:23
·
3306 commits
to main
since this release
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 automatic addition of
- 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()
andBoundedInt::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()', ))]