Skip to content

v0.7.0

Compare
Choose a tag to compare
@mkaput mkaput released this 23 Aug 16:32
· 698 commits to main since this release
58cc88e

Breaking changes

scarb-ui crate, deprecation of PackagesFilter in scarb-metadata

The packages_filter feature in scarb-metadata is deprecated since freshly released version 1.7.0. We plan to remove it entirely in scarb-metadata 1.8.0, if we will not detect active usage of this feature on public repositories (currently this feature is unused outside Software Mansion's codebases).

The entire feature has been moved to a new crate: scarb-ui, which also provides Scarb's output system. Currently, this crate is not published to crates.io, but we consider doing so if there will be a need for it in the community.

New features

New project template

We have changed the template used by scarb new/init commands. Newly generated projects will now contain example tests and a main function, to demonstrate usage of scarb cairo-run.

scarb cache path

This new command prints a path to Scarb's global cache directory.

Big shout out to @ametel01 for implementing this ❤️

Bugfixes

  • Fixed version resolution issue which prevented following snippet from working:
    [dependencies]
    openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", tag = "0.7.0-rc.0" }
  • scarb cairo-test can now successfully deploy contracts declared in dependencies

Cairo Version

This version of Scarb comes with Cairo v2.2.0.

What's Changed

  • Backport updates from release 0.6.2 branch by @mkaput in #572
  • Fix error message for missing gas by @mkaput in #573
  • New init template and examples updates by @mkaput in #574
  • added cache-path command by @ametel01 in #566
  • Add support for installing nightlies in install script by @szymmis in #571
  • Remove unused tracing-futures dependency by @mkaput in #580
  • Print Sierra version in scarb --version by @mkaput in #578
  • Refactor write_script duplication in tests by @szymmis in #579
  • Extract scarb-ui crate by @mkaput in #581
  • Move all UI components to a submodule by @mkaput in #582
  • Bump the non-critical group with 11 updates by @dependabot in #589
  • Copy PackagesFilter into scarb-ui by @mkaput in #583
  • Deprecate packages_filter feature in scarb-metadata by @mkaput in #584
  • Increase test parallelism in CI workflow by @mkaput in #593
  • Properly use Status message when testing workspace by @mkaput in #585
  • Basic implementation of scarb-ui in scarb cairo-run by @mkaput in #587
  • Test-runner: add unit components to compilation by @maciektr in #594
  • Consider prerelease versions if version field of a dependency is unspecified by @mkaput in #601
  • Prepare scarb-metadata release 1.7.0 by @mkaput in #602
  • Add OZ installation example by @martriay in #570
  • Upgrade Cairo to 2.2.0 by @mkaput in #603

New Contributors

Full Changelog: v0.6.0...v0.7.0