Releases: software-mansion/scarb
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
v2.4.2
Welcome to the release notes for Scarb v2.4.2!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.2
.
What's Changed
- Bump the non-critical group with 11 updates by @dependabot in #1013
- Update Cairo revision by @maciektr in #1014
- Bump gix from 0.56.0 to 0.57.1 by @dependabot in #1017
- Bump the non-critical group with 10 updates by @dependabot in #1016
- Bump the non-critical group with 7 updates by @dependabot in #1024
- Revert "adds max steps attribute (#979)" by @tkumor3 in #1025
- Re-add @mkaput to
CODEOWNERS
by @mkaput in #1026 - Update artifacts and pages actions by @mkaput in #1027
Full Changelog: v2.4.1...v2.4.2
v2.4.1
Welcome to the release notes for Scarb v2.4.1!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.1
.
What's Changed
- Use severity aware diagnostic callback by @maciektr in #967
- Update cairo-run docs, add no-build argument by @maciektr in #987
- Fix invalid link in docs by @abulenok in #989
- Use diagnostic severity in cairo formatter by @maciektr in #986
- Bump gix from 0.55.2 to 0.56.0 by @dependabot in #992
- Update deps by @maciektr in #994
- Add dep_kind to dependency metadata by @maciektr in #988
- Update Cairo by @maciektr in #996
- Prepare scarb-metadata release
1.10.0
by @maciektr in #998 - Bump zerocopy from 0.7.25 to 0.7.31 by @dependabot in #1000
- Add metadata completeness validation by @tomek0123456789 in #985
- adds max steps attribute by @tkumor3 in #979
- Bump the non-critical group with 3 updates by @dependabot in #1002
- Add default gas limit value to cairo-run by @maciektr in #1003
- Docs: Add starknet section to guide, edition constant and asdf installation note by @maciektr in #1004
- Ignore non-cairo files in integration tests auto-detect by @maciektr in #1006
- Parse allow-warnings in snforge test collector by @maciektr in #1005
- Make error msg easier to understand by @maciektr in #1009
New Contributors
Full Changelog: v0.7.0...v2.4.1
v2.4.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.3.1
Welcome to the release notes for Scarb v2.4.0
!
This release brings new stable Cairo compiler release to Scarb.
Development dependencies
Since this release, you can specify development dependencies in your package manifest.
Development dependencies are only used when compiling tests.
These dependencies are not propagated to other packages which depend on this package.
In order to add development dependency, specify it under [dev-dependencies]
section:
[dev-dependencies]
alexandria_math = { git = "https://github.com/keep-starknet-strange/alexandria.git" }
Alternatively, you can add development dependencies with scarb add
command by passing --dev
flag:
scarb add --dev alexandria_math --git https://github.com/keep-starknet-strange/alexandria.git
Cairo Version
This version of Scarb comes with Cairo v2.4.0
.
What's Changed
- Run scheduled tests Monday - Friday only by @maciektr in #945
- Add docs for fmt emit functionality by @maciektr in #943
- Fix emit tests: replace stdout_matches with stdout_eq by @maciektr in #942
- Implement lockfiles checksums verification by @mkaput in #937
- Bump deno_task_shell from 0.14.0 to 0.14.2 by @dependabot in #949
- Bump the non-critical group with 6 updates by @dependabot in #948
- Add
dev-dependencies
by @tomek0123456789 in #920 - Parse
BlockId
on forge's side -> remove starknet dependency by @piotmag769 in #941 - Do not compile packages when publishing them in tests by @mkaput in #939
- Handle case when packaged repo does not have any commits by @szymmis in #956
- Bump openssl from 0.10.59 to 0.10.60 by @dependabot in #958
- Enable Windows CI by @mkaput in #947
- Stop requesting reviews from mkaput (for now) by @maciektr in #959
- Remove DiagnosticReporter creation duplicate by @maciektr in #952
- Add test for verified HttpRegistry publish by @szymmis in #957
- Optimize E2E tests build times by @mkaput in #953
- Use
cannonical_url
instead ofurl
for SourceId comparisons by @szymmis in #963 - Add fmt parsing error test case by @maciektr in #965
- adds snforge test collector test by @tkumor3 in #961
- Update deps by @maciektr in #980
- add
--dev
flag toadd
andrm
by @tomek0123456789 in #977 - validate git urls by @tomek0123456789 in #976
- Bump vite from 5.0.2 to 5.0.5 in /website by @dependabot in #981
New Contributors
Full Changelog: v2.4.0-rc6...v2.4.0