Scarb 0.5.0-alpha.2
Welcome to the release notes for Scarb v0.5.0-alpha.2
!
Note: This version is not yet supported on Starknet! If you want to develop contracts deployable to current Starknet v0.11, please stick with Scarb v0.4.
scarb cairo-run
The scarb cairo-run
command executes the main
function of a local package. Scarb comes with preinstalled cairo-run
extension, which bundles the Cairo's native runner. The package needs to be compiled with scarb build
beforehand.
Our examples in the repository now includes a package with the main function, and you can check out this feature by quickly running scarb cairo-run
over it:
$ cd examples/cairo_run_example
$ scarb build
$ scarb cairo-run --available-gas 2000000
running cairo_run_example ...
Run completed successfully, returning [2]
Remaining gas: 1971340
For more information, check out the dedicated Cairo run documentation page.
Cairo version
This version of Scarb comes with Cairo v2.0.0-rc4
.
What's Changed
Full Changelog: v0.5.0-alpha.1...v0.5.0-alpha.2