Skip to content

Releases: software-mansion/scarb

v2.6.4

19 Mar 22:32
c4c7c0b
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.6.4!
This release introduces preliminary work on procedural macros and a new configuration flag.

An option to disable gas calculation

This release introduces a new flag in the Cairo compiler configuration, called enable-gas.

If set to false, Scarb will not add any instructions related to gas usage calculation during the project compilation. By default, this flag is set to true. This flag cannot be disabled while compiling the starknet-contract target.

[cairo]
enable-gas = false

Cairo Version

This version of Scarb comes with Cairo v2.6.3.

What's Changed

New Contributors

Full Changelog: v2.6.3...v2.6.4

v2.6.3

13 Mar 10:43
e6f921d
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.6.3!
This quick release is primarily a Cairo upgrade.

Cairo Version

This version of Scarb comes with Cairo v2.6.3.

What's Changed

Full Changelog: v2.6.2...v2.6.3

v2.6.2

08 Mar 22:19
dfbe885
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.6.2!

Fix compilation of tests with contracts in dependencies

Since Scarb does not compile tests defined in the dependencies of a tested package, all items with the #[cfg(test)] attribute are removed from all components in the compilation unit apart from the main component (i.e., the package that is tested).

This behavior implies that there cannot be any expectation in the Cairo test runner, that items defined under the #[cfg(test)] in dependencies are available to be imported during testing. Unfortunately, the implementation of test runner in recent releases of Scarb in some cases has erroneously expected one of the variables in the contract definition to be available under those circumstances. This meant that for some projects, the test runner failed to execute the test.

This quick release introduces a fix.

Cairo Version

This version of Scarb comes with Cairo v2.6.2.

What's Changed

Full Changelog: v2.6.1...v2.6.2

v2.6.1

07 Mar 08:07
8f50bee
Compare
Choose a tag to compare

Cairo release notes ➡️

Warning

This version includes an regression, that may cause cairo-test to fail to start in some projects. Please use thev2.6.2 version instead.

Welcome to the release notes for Scarb v2.6.1!
This quick release is primarily a Cairo upgrade.

Cairo Version

This version of Scarb comes with Cairo v2.6.1.

What's Changed

Full Changelog: v2.6.0...v2.6.1

v2.6.0

05 Mar 09:44
850b938
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.6.0!
This quick release is primarily a Cairo upgrade.

Cairo Version

This version of Scarb comes with Cairo v2.6.0.

What's Changed

Full Changelog: v2.5.4...v2.6.0

v2.6.0-rc.1

14 Feb 18:13
f9e2853
Compare
Choose a tag to compare
v2.6.0-rc.1 Pre-release
Pre-release

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.4.

Welcome to the release notes for Scarb v2.6.0-rc.1!
This quick release is primarily a Cairo upgrade.

Cairo Version

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

What's Changed

New Contributors

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

v2.5.4

14 Feb 18:09
28dee92
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.5.4!
This quick release is primarily a Cairo upgrade.

Cairo Version

This version of Scarb comes with Cairo v2.5.4.

What's Changed

New Contributors

Full Changelog: v2.5.3...v2.5.4

v2.6.0-rc.0

07 Feb 13:53
2e3e748
Compare
Choose a tag to compare
v2.6.0-rc.0 Pre-release
Pre-release

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

v2.5.3

01 Feb 13:18
46d5d5c
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.5.3!
This quick release is primarily a Cairo upgrade.

Cairo Version

This version of Scarb comes with Cairo v2.5.3.

What's Changed

Full Changelog: v2.5.2...v2.5.3

v2.5.2

31 Jan 15:05
4fcd40d
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.5.2!

This release brings the scarb check command for the first time!

Scarb Check

If you want to check your code for any build errors, but do not really need any build artifacts, you can now use the new check command instead of standard build! This will give you a perfomance advantage, as Scarb no longer needs to spend time creating and emitting all the output files. Try this in your CI!

Cairo Version

This version of Scarb comes with Cairo v2.5.2.

What's Changed

New Contributors

Full Changelog: v2.5.1...v2.5.2