Skip to content

v2.4.0-rc0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Nov 12:41
· 594 commits to main since this release
4d5e0a8

Cairo release notes ➡️

Warning

This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1

Editions

Since this release, Scarb supports defining Cairo compiler edition for a package. The editions allow newer Cairo compiler versions to introduce opt-in features that may break existing code.

The edition can be defined with edition key in [package] section in Scarb manifest.

[package]
name = "hello_world"
version = "1.0.0"
edition = "2023_10"

Setting the edition key in [package] will affect all targets in the package, including test suites etc.

scarb update

Since the introduction of lockfiles, Scarb will not automatically update all dependencies on each run. The update of locked versions can be requested with the scarb update command. This will perform project resolution ignoring the existing lockfile, then write out a new Scarb.lock with the new version information. Note that the Scarb.toml manifest file will not be changed, and all version requirements from it will be preserved.

Cairo Version

This version of Scarb comes with Cairo v2.4.0-rc0.

What's Changed

New Contributors

Full Changelog: v2.3.1...v2.4.0-rc0