github software-mansion/scarb v0.5.2
0.5.2

latest releases: cairo-lang-macro/v0.2.1, cairo-lang-macro-attributes/v0.2.1, v2.12.1...
2 years ago

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

Don't miss a new scarb release

NewReleases is sending notifications on new releases.