github software-mansion/scarb v2.11.0

latest releases: cairo-lang-macro/v0.2.1, cairo-lang-macro-attributes/v0.2.1, v2.12.1...
6 months ago

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.11.0!
This release brings several new developments and bug fixes.

Bug fixes included in this release:

  • The debug_info field is omitted during size calculation for contract size warnings.
  • Warnings are no longer duplicated when compiling contracts for tests.
  • Compiler config collection is fixed with regard to [profile.name.cairo] and [cairo] precedence. See [cairo] section docs for more information.
  • Contract compilation no longer reports contract names duplicates erroneously, when compiling a package with contract re-exports.
  • And more!

Per-crate compiler plugins

Since this release, Cairo compiler plugins apply changes only to packages in a compilation unit that depend on them directly. In contrast to previous releases, plugins are no longer applied to all packages in the compilation unit. This change applies to both built-in compiler plugins and procedural macro packages.

Scarb metadata exposes information about dependency on compiler plugins in dependencies field of CompilationUnitComponentMetadata. The plugins are still listed in cairo_plugins field of CompilationUnitMetadata.

A Cairo package can re-export a procedural macro from it's dependencies by adding re-export-cairo-plugins = ["dependency_name"] key to it's [package] section of the toml manifest.

Cairo Version

This version of Scarb comes with Cairo v2.11.0.

What's Changed

Full Changelog: v2.10.1...v2.11.0

Don't miss a new scarb release

NewReleases is sending notifications on new releases.