v2.5.0
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
- Add support for passing arguments to
main
by @neotheprogramist in #1055 - Reverse search order in
find_external_subcommand
by @mkaput in #1067 - exec_replace: log the command to be executed by @mkaput in #1064
- scarb-ui: Add methods for accessing stderr color preferences by @mkaput in #1065
- Synchronize
tracing
color preference withscarb-ui
stderr one by @mkaput in #1068 - Bump vite from 5.0.5 to 5.0.12 in /website by @dependabot in #1069
- Bump h2 from 0.3.22 to 0.3.24 by @dependabot in #1070
- Bump deno_task_shell from 0.14.2 to 0.14.3 by @dependabot in #1072
- Bump gix from 0.57.1 to 0.58.0 by @dependabot in #1073
- Bump the non-critical group with 8 updates by @dependabot in #1071
- Prepare
scarb-ui
release0.1.3
by @mkaput in #1078 - Prepare release
2.5.0
by @mkaput in #1077
New Contributors
- @neotheprogramist made their first contribution in #1055
Full Changelog: v2.4.4...v2.5.0