Skip to content

Releases: software-mansion/scarb

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

v2.5.1

29 Jan 13:30
9d216f5
Compare
Choose a tag to compare

Cairo release notes ➡️

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

Cairo Version

This version of Scarb comes with Cairo v2.5.1.

What's Changed

Full Changelog: v2.5.0...v2.5.1

v2.5.0

22 Jan 20:11
c531a6e
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.5.0!

This is a significant Cairo language update with just a sprinkle of small improvements and fixes in Scarb itself ✨ But don't worry! We're just cooking big stuff behind the scenes 🧑‍🍳

scarb cairo-run arguments

The scarb cairo-run extension can now handle program arguments. Now, the main function in your Cairo programs may have parameters. The arguments can be passed to the scarb cairo-run command as a single JSON array of numbers, decimal bigints or recursive arrays of those. Nested arrays can translate to either Cairo arrays, tuples or plain structures. Consult the following table for example valid arguments and their matching function signatures:

Argument Function signature
[1] fn main(a: u64)
[1, "2"] fn main(a: u64, b: u64)
[[1, 2], [3, 4, 5]] fn main(t: (u64, u64), v: Array<u64>)

Big thank you to @neotheprogramist for implementing this feature! 🎉

Cairo Version

This version of Scarb comes with Cairo v2.5.0.

What's Changed

New Contributors

Full Changelog: v2.4.4...v2.5.0

v2.4.4

18 Jan 09:14
8ed977a
Compare
Choose a tag to compare

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.4.4!
This quick release comes with a Cairo upgrade and couple fixes.

Cairo Version

This version of Scarb comes with Cairo v2.4.4.

What's Changed

New Contributors

Full Changelog: v2.4.3...v2.4.4

v2.4.3

04 Jan 14:03
5dbab1f
Compare
Choose a tag to compare

Cairo release notes ➡️

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

Cairo Version

This version of Scarb comes with Cairo v2.4.3.

What's Changed

Full Changelog: v2.4.2...v2.4.3

v2.4.2

02 Jan 19:02
d15b169
Compare
Choose a tag to compare

Cairo release notes ➡️

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

Cairo Version

This version of Scarb comes with Cairo v2.4.2.

What's Changed

Full Changelog: v2.4.1...v2.4.2

v2.4.1

22 Dec 08:51
c93ee62
Compare
Choose a tag to compare

Cairo release notes ➡️

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

Cairo Version

This version of Scarb comes with Cairo v2.4.1.

What's Changed

New Contributors

Full Changelog: v0.7.0...v2.4.1

v2.4.0

07 Dec 11:06
cba988e
Compare
Choose a tag to compare

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

Welcome to the release notes for Scarb v2.4.0!
This release brings new stable Cairo compiler release to Scarb.

Development dependencies

Since this release, you can specify development dependencies in your package manifest.
Development dependencies are only used when compiling tests.
These dependencies are not propagated to other packages which depend on this package.

In order to add development dependency, specify it under [dev-dependencies] section:

[dev-dependencies]
alexandria_math = { git = "https://github.com/keep-starknet-strange/alexandria.git" }

Alternatively, you can add development dependencies with scarb add command by passing --dev flag:

scarb add --dev alexandria_math --git https://github.com/keep-starknet-strange/alexandria.git

Cairo Version

This version of Scarb comes with Cairo v2.4.0.

What's Changed

New Contributors

Full Changelog: v2.4.0-rc6...v2.4.0