v2.6.0-rc.0
Pre-releaseWarning
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
- Bump the non-critical group with 7 updates by @dependabot in #1114
- Update cairo by @maciektr in #1115
- Allow compilation of packages with
no-core
flag enabled. by @maciektr in #1112 - Add builtin prop on cairo plugin target definition by @maciektr in #1059
- Fix experimental_features deserialization backward compatibility by @maciektr in #1118
- Check backward compatibility of metadata command deserialization by @maciektr in #1119
- Prepare scarb-metadata release
1.11.1
by @maciektr in #1120 - Do not compile tests from dependencies in
scarb test
by @szymmis in #1084
Full Changelog: v2.5.3...v2.6.0-rc.0