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
repositoryfield - Provide a VCS project website via flag
--remote-base-urlorSCARB_DOC_REMOTE_BASE_URLenvironmental 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
- StructSignatureBuilder by @FroyaTheHen in #2900
- Doc cfg(test) and cfg(target: 'test') by @maciektr in #2918
- Bump the non-critical group with 13 updates by @dependabot[bot] in #2922
- Replace unwrap with expect in resolver by @maciektr in #2881
- Bump actions/download-artifact from 6 to 7 by @dependabot[bot] in #2926
- Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #2927
- Bump mdbook to 0.5 by @maciektr in #2895
- Ignore bincode in dependabot updates by @maciektr in #2930
- Add test case for no-core package with deps by @maciektr in #2882
- Bump the non-critical group with 16 updates by @dependabot[bot] in #2932
- Bump preact from 10.26.9 to 10.28.2 in /website by @dependabot[bot] in #2934
- Bump Stwo by @maciektr in #2880
- Bump Cairo by @maciektr in #2935
- add source code link in generated documentation by @FroyaTheHen in #2906
- add arg remote-base-repo to scarb doc command by @FroyaTheHen in #2907
- document scarb doc --remote-base-url by @FroyaTheHen in #2909
- Mark starkup landing as complete in 2025_Q4_2026_Q1_roadmap.md by @maciektr in #2938
- Add a test case for registry dep with transient dev dep by @maciektr in #2936
- Fix: recognize dependency kind of registry package dependencies by @maciektr in #2937
- Disallow implicit DepKind::Normal in ManifestDependency::builder by @maciektr in #2939
- Treat inc cache warmup as fire and forget by @maciektr in #2940
- Bump deno_task_shell from 0.26.1 to 0.26.2 by @dependabot[bot] in #2947
- Bump the non-critical group with 13 updates by @dependabot[bot] in #2946
- Properly format url paths for doc source code links on windows by @maciektr in #2945
- Add --open flag to scarb doc command by @maciektr in #2948
- fix error message scarb doc by @FroyaTheHen in #2951
- Upgrade wasmtime to 39 by @maciektr in #2949
- Bump Cairo by @maciektr in #2952
- Replace bincode with postcard by @maciektr in #2953
- link macro call items source code by @FroyaTheHen in #2915
- add documentation linking if package repository given in manifest by @FroyaTheHen in #2942
- scarb doc: enable/disable remote linking by @FroyaTheHen in #2954
- new stable dtolnay/rust-toolchain fix style by @FroyaTheHen in #2962
- Bump the non-critical group across 1 directory with 9 updates by @dependabot[bot] in #2964
- Bump deno_task_shell from 0.26.2 to 0.28.0 by @dependabot[bot] in #2968
- Bump the non-critical group with 3 updates by @dependabot[bot] in #2967
- dupdate doc base repo linking by @FroyaTheHen in #2956
- Use once_map crate from crates.io by @maciektr in #2970
- scarb doc: one db across workspace by @FroyaTheHen in #2959
- scarb doc: dispose struct FileLinkData by @FroyaTheHen in #2960
- Bump the non-critical group with 6 updates by @dependabot[bot] in #2972
- Bump bytes from 1.10.1 to 1.11.1 by @dependabot[bot] in #2974
- Fix scarb ignoring derives macros by @wawel37 in #2973
- Attempt panic data retrieval for bootloader execution by @maciektr in #2975
- Fix links by @maciektr in #2979
- Remove proof soundness warning by @maciektr in #2976
- Add --json flag to all subcommands by @maciektr in #2969
- Bump time from 0.3.46 to 0.3.47 by @dependabot[bot] in #2984
- Test links by @maciektr in #2980
- Scarb execute: Rename output to program output in execution summary, force print if cli arg by @maciektr in #2982
- Bump the non-critical group with 7 updates by @dependabot[bot] in #2987
- Add submodules tests by @maciektr in #2985
- Add informative error message on missing target dir env var in extensions by @maciektr in #2986
- bump stwo and cairo by @Arcticae in #2995
Full Changelog: v2.15.2...v2.16.0-rc.0