Skip to content

v2.6.0-rc.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Feb 13:53
· 373 commits to main since this release
2e3e748

Cairo release notes ➡️

Warning

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

Welcome to the release notes for Scarb v2.6.0-rc.0!
This release comes with Sierra v1.5.0.

Changes to conditional compilation of tests.

From this release onwards, Scarb will not compile tests defined in dependencies of a tested package. All items with #[cfg(test)] attribute will be removed from all components in the compilation unit apart from the main component (i.e. the package that is tested). You can verify which cfg attributes are used in which component of your project by reviewing it's Scarb metadata. This means that compilation of tests in some projects (with a lot of thoroughly tested dependencies) will be slightly faster (as Scarb will omit some unnecessary steps). However, more importantly this means a full isolation of test dependencies. If you want to test your package, you only need to ensure that tests defined in it can be compiled (regardless of tests defined in other packages). Dependecies required by tests from a package should be defined under the dev-dependencies section, so they do not propagated to other packages that depend on the package.

Cairo Version

This version of Scarb comes with Cairo v2.6.0-rc.0.

What's Changed

Full Changelog: v2.5.3...v2.6.0-rc.0