0.5.2
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
- Combine download & install pages and mention ASDF plugin by @mkaput in #462
- Build external contracts by @maciektr in #458
- Upgrade Cairo to
2.0.2
by @mkaput in #467
Full Changelog: v0.5.1...v0.5.2