Releases: starkware-libs/cairo
Releases · starkware-libs/cairo
v2.1.0-rc3
Enabled serialization of contracts using Unary minus operator. #3809
Full Changelog: v2.1.0-rc2...v2.1.0-rc3
v2.1.0-rc2
Fixed bug in syscall simulation of secp256k1_get_point_from_x
using the wrong parity. #3768
v2.1.0-rc1
v2.1.0-rc0
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 bestarknet::Store
. - Removed
_internal
from its methods. - Made
size
not accept a value, in preparation for it being an associated constant for the trait.
- Renamed to
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
andpop_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> }
intoif 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
- @MaksymilianDemitraszek made their first contribution in #3283
- @piotmag769 made their first contribution in #3488
- @abulenok made their first contribution in #3588
- @jessupjn made their first contribution in #3580
- @Arcticae made their first contribution in #3591
- @neotheprogramist made their first contribution in #3569
- @cptartur made their first contribution in #3632
- @PhilippeR26 made their first contribution in #3560
Full Changelog: v2.0.2...v2.1.0-rc0
v2.0.2
Cairo compiler.
v2.0.1
Cairo compiler.
v2.0.0-rc7
Cairo compiler.
v2.0.0
Cairo compiler.
v2.0.0-rc6
Cairo compiler.
v1.1.1
Cairo compiler.