Skip to content

0.5.2

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Jul 11:22
· 990 commits to main since this release
f4b62ad

Scarb 0.5.2

Welcome to the release notes for Scarb 0.5.2! This release upgrades Cairo to 2.0.2 and brings one small feature.

Compiling external contracts

While compiling the Scarb project, by default, no artefacts are emitted for contracts defined in dependencies. It is now possible to instruct scarb build to include external contracts in the compilation of your package. This can be for example useful in some custom testing flows as requested by several Scarb users. For example, if your package depends on hypothetical package utility_contracts which provides Account contract, you can tell Scarb to compile Hello as part of your build:

[dependencies]
starknet = "2.0.0"
utility_contracts = { path = "../shared_contracts" }
 
[[target.starknet-contract]]
build-external-contracts = ["utility_contracts::Account"]

See relevant documentation section for more information.

Cairo version

This version of Scarb comes with Cairo v2.0.2.

What's Changed

Full Changelog: v0.5.1...v0.5.2