github software-mansion/scarb v2.16.0-rc.0

pre-release12 hours ago

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.16.0-rc.0!

Cairo Version

This version of Scarb comes with Cairo v2.16.0-rc.0.

Generating source code links in Scarb doc

You can add "View source" links in generated docs that point to your VCS repository. There are two ways to enable linking:

  • Use the package manifest repository field
  • Provide a VCS project website via flag --remote-base-url or SCARB_DOC_REMOTE_BASE_URL environmental variable. Scarb will append the file path (relative to the workspace root) and, when available, a VCS line range anchor.

Example:

scarb doc --remote-base-url=https://github.com/ExampleRepoOwner/ExampleRepoProject/blob/example_branch/

If a workspace package named hello_world contains src/lib.cairo and an item spans lines 10–15, the link will look like:

https://github.com/ExampleRepoOwner/ExampleRepoProject/blob/example_branch/hello_world/src/lib.cairo#L10-L15

Note that Scarb does not validate that the link targets exist. You must provide a correct base URL and verify the results yourself.

To turn off link generation, use --disable-remote-linking.

See documentation for more details.

What's Changed

Full Changelog: v2.15.2...v2.16.0-rc.0

Don't miss a new scarb release

NewReleases is sending notifications on new releases.