Releases: software-mansion/scarb
v2.6.0
Welcome to the release notes for Scarb v2.6.0!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.6.0
.
What's Changed
- Rename macro interface crates to cairo-lang namespace by @maciektr in #1145
- Add
scarb cairo-run
tests by @tomek0123456789 in #1113 - Rename cairo-lang-macro-interface to cairo-lang-macro by @maciektr in #1149
- Add
ProcMacroHost
definition by @maciektr in #1060 - Bump semver from 1.0.21 to 1.0.22 by @dependabot in #1154
- Bump the non-critical group with 7 updates by @dependabot in #1153
- Implement procedural macro host
generate_code
for attribute macro by @maciektr in #1091 - Update Cairo by @maciektr in #1160
- Implement loading shared libraries for proc macro plugins by @maciektr in #1093
- Procedural macro compilation by @maciektr in #1110
- Add test case for procedural macro compilation by @maciektr in #1100
- Implement check command for cairo plugins by @maciektr in #1148
- Run cargo fetch on workspace resolve by @maciektr in #1150
- Use json output format in cargo if set in scarb_ui by @maciektr in #1151
- Bump the non-critical group with 4 updates by @dependabot in #1163
- Procedural macros design document by @maciektr in #1109
- Change compilation unit to enum by @maciektr in #1155
- Add aux_data to proc macro result by @maciektr in #1143
- Split cairo-lang-macro crate into two (api <> abi) by @maciektr in #1157
- Bump the non-critical group with 5 updates by @dependabot in #1168
- Update CODEOWNERS by @maciektr in #1170
- Update scarb new/init hello world Cairo code by @maciektr in #1169
- Prepare release
2.6.0
by @maciektr in #1171
Full Changelog: v2.5.4...v2.6.0
v2.6.0-rc.1
Warning
This version is not yet supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.5.4
.
Welcome to the release notes for Scarb v2.6.0-rc.1!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.6.0-rc.1
.
What's Changed
- Fix
edition
for main crates in test compilation in test collector by @piotmag769 in #1135 - Bump the non-critical group with 5 updates by @dependabot in #1141
- Exclude cairo-felt from dependabot patterns by @maciektr in #1142
- Create procedural macro interface library by @maciektr in #1139
- Update cairo by @maciektr in #1144
- [
snforge-test-collector
] AddTestDetails
toTestCaseRaw
by @drknzz in #1121
New Contributors
Full Changelog: v2.6.0-rc.0...v2.6.0-rc.1
v2.5.4
Welcome to the release notes for Scarb v2.5.4!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.5.4
.
What's Changed
- Bump the non-critical group with 7 updates by @dependabot in #1114
- Update cairo by @maciektr in #1115
- Allow compilation of packages with
no-core
flag enabled. by @maciektr in #1112 - Add builtin prop on cairo plugin target definition by @maciektr in #1059
- Fix experimental_features deserialization backward compatibility by @maciektr in #1118
- Check backward compatibility of metadata command deserialization by @maciektr in #1119
- Prepare scarb-metadata release
1.11.1
by @maciektr in #1120 - Do not compile tests from dependencies in
scarb test
by @szymmis in #1084 - Set crate-level cfg_set in snforge-test-collector by @maciektr in #1125
- Fix
edition
for main crates in test compilation in test collector by @piotmag769 in #1135 - Bump the non-critical group with 5 updates by @dependabot in #1141
- Exclude cairo-felt from dependabot patterns by @maciektr in #1142
- Create procedural macro interface library by @maciektr in #1139
- Update cairo by @maciektr in #1144
- [
snforge-test-collector
] AddTestDetails
toTestCaseRaw
by @drknzz in #1121
New Contributors
Full Changelog: v2.5.3...v2.5.4
v2.6.0-rc.0
Warning
This version is not yet supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.5.3
.
Welcome to the release notes for Scarb v2.6.0-rc.0
!
This release comes with Sierra v1.5.0
.
Changes to conditional compilation of tests.
From this release onwards, Scarb will not compile tests defined in dependencies of a tested package. All items with #[cfg(test)]
attribute will be removed from all components in the compilation unit apart from the main component (i.e. the package that is tested). You can verify which cfg
attributes are used in which component of your project by reviewing it's Scarb metadata. This means that compilation of tests in some projects (with a lot of thoroughly tested dependencies) will be slightly faster (as Scarb will omit some unnecessary steps). However, more importantly this means a full isolation of test dependencies. If you want to test your package, you only need to ensure that tests defined in it can be compiled (regardless of tests defined in other packages). Dependecies required by tests from a package should be defined under the dev-dependencies
section, so they do not propagated to other packages that depend on the package.
Cairo Version
This version of Scarb comes with Cairo v2.6.0-rc.0
.
What's Changed
- Bump the non-critical group with 7 updates by @dependabot in #1114
- Update cairo by @maciektr in #1115
- Allow compilation of packages with
no-core
flag enabled. by @maciektr in #1112 - Add builtin prop on cairo plugin target definition by @maciektr in #1059
- Fix experimental_features deserialization backward compatibility by @maciektr in #1118
- Check backward compatibility of metadata command deserialization by @maciektr in #1119
- Prepare scarb-metadata release
1.11.1
by @maciektr in #1120 - Do not compile tests from dependencies in
scarb test
by @szymmis in #1084
Full Changelog: v2.5.3...v2.6.0-rc.0
v2.5.3
Welcome to the release notes for Scarb v2.5.3
!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.5.3
.
What's Changed
- Fix ignored test by @maciektr in #1106
- Bump slackapi/slack-github-action from 1.24.0 to 1.25.0 by @dependabot in #1107
- Add profile arguments to MetadataCommand by @maciektr in #1105
- Prepare release
2.5.3
by @maciektr in #1108
Full Changelog: v2.5.2...v2.5.3
v2.5.2
Welcome to the release notes for Scarb v2.5.2
!
This release brings the scarb check
command for the first time!
Scarb Check
If you want to check your code for any build errors, but do not really need any build artifacts, you can now use the new check
command instead of standard build
! This will give you a perfomance advantage, as Scarb no longer needs to spend time creating and emitting all the output files. Try this in your CI!
Cairo Version
This version of Scarb comes with Cairo v2.5.2
.
What's Changed
- Bump deno_task_shell from 0.14.3 to 0.14.4 by @dependabot in #1096
- Bump the non-critical group with 3 updates by @dependabot in #1095
- Add
scarb check
by @tomek0123456789 in #1046 scarb check
docs by @tomek0123456789 in #1099- CI: Use M1 runners wherever possible by @mkaput in #1101
- Support for human readable message in
MetadataCommand
by @Draggu in #1098 - Prepare scarb-metadata release
1.11.0
by @maciektr in #1103 - Prepare release
2.5.2
by @maciektr in #1104
New Contributors
Full Changelog: v2.5.1...v2.5.2
v2.5.1
Welcome to the release notes for Scarb v2.5.1
!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.5.1
.
What's Changed
- Update website to Vitepress
1.0.0-rc.40
etc. by @mkaput in #1079 - Rename 'program input' to 'arguments' and document this feature by @mkaput in #1080
- Add
module_path
toContractArtifacts
by @tomek0123456789 in #1082 - Update
Starknet Artifacts
docs, fix invalid links by @tomek0123456789 in #1087 snforge-test-collector
: nightly fix &cairo-lang-*
bump by @Arcticae in #1086- Prepare release
2.5.1
by @maciektr in #1094
Full Changelog: v2.5.0...v2.5.1
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
v2.4.4
Welcome to the release notes for Scarb v2.4.4!
This quick release comes with a Cairo upgrade and couple fixes.
Cairo Version
This version of Scarb comes with Cairo v2.4.4
.
What's Changed
- Bump semver from 1.0.20 to 1.0.21 by @dependabot in #1039
- Bump the non-critical group with 9 updates by @dependabot in #1038
- Use dev-deps during compilation in
snforge-test-collector
by @piotmag769 in #1033 - Regenerate Cargo.lock, upgrading all dependencies alongside by @mkaput in #1042
availabe_gas
support in snfoundry-test-collector by @war-in in #1045- Add ignored test case for dev-deps propagation by @maciektr in #1030
- Expand help message preface by @mkaput in #1047
- Bump the non-critical group with 3 updates by @dependabot in #1051
- Do not propagate dev deps by @maciektr in #1050
- Update Cairo by @maciektr in #1053
- Add support for compiler experimental features in
snforge-test-collector
by @tomek0123456789 in #1012 - Remove @mkaput from CODEOWNERS by @mkaput in #1056
- Rename
experimental_features
->allow_features
by @tomek0123456789 in #1058 - Fix
snforge-test-collector
's defaultavailable_gas
value by @Arcticae in #1057 - Revert "Rename
experimental_features
->allow_features
(#1058)" by @tomek0123456789 in #1061
New Contributors
Full Changelog: v2.4.3...v2.4.4
v2.4.3
Welcome to the release notes for Scarb v2.4.3!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.3
.
What's Changed
- Prepare release
2.4.3
@maciektr
Full Changelog: v2.4.2...v2.4.3