v0.38.0
Note: This is a re-publish of 0.37.2 under 0.38.0 due to some major breaking changes in the original.
What's Changed
- memcpyopt: Ensure source local isn't clobbered before the new memcpy by @vaivaswatha in #4422
- Fix ref mut parameter checking to apply to all function parameters. by @tritao in #4442
- U256 c fix by @rostyslavtyshko in #4441
- Failure to delete the only element of
Vec
of length 1 by @rostyslavtyshko in #4445 - chore: deprecate
built_pkgs_with_manifest()
by @bingcicle in #4447 - refactor:
forc-doc
- move headers above descriptions and add extra vertical spacing between items by @sarahschwartz in #4433 - refactor: Introduce
ForcResult
andForcError
to propagate return code with error message by @kayagokalp in #4455 - Refactor
TyDecl
Enum and Separate Structs for Improved Code Organization by @JoshuaBatty in #4457 - Remove unused locals by @vaivaswatha in #4458
- Implement OR match pattern by @IGI-111 in #4348
- refactor: better error formatting for
ForcResult
by @kayagokalp in #4460 - LSP: Rewrite
TyProgram
traversal to use theParse
trait. by @JoshuaBatty in #4467 - Sort forc-doc links alphabetically, add std-lib docs definitions by @sarahschwartz in #4465
- Fix hover docs for self and boolean keywords by @sdankel in #4469
- Switch the Sway
sdk-harness
tests to useForc
workspaces instead of the bash scriptbuild.sh
by @mohammadfawaz in #4476 - Bugfix: use the index param in std::tx::tx_witness_pointer by @nfurfaro in #4454
- Adding subsection on address and contract types by @calldelegation in #4479
- fix: forc-doc links sort order by @sarahschwartz in #4475
- fix(fmt): redundant newline insertions in commented code by @bingcicle in #4472
- Implements aliases support in DCA. by @esdrubal in #4337
- Fixes
Self
not found in match statement. by @esdrubal in #4459 - Improves error message when log is used in predicate. by @esdrubal in #4484
- ci: bump ci to use rust 1.69.0 by @kayagokalp in #4486
- Bump to v0.37.2 by @kayagokalp in #4492
- fix broken installation url, typo by @sarahschwartz in #4488
Breaking Changes (Language)
This release includes some major changes w.r.t. storage access! In particular, take a look at the following:
- Replace old storage API with the new one explained in the
StorageKey
RFC by @mohammadfawaz in #4464.
New Features
- feat: enable contract calls from unit tests in scripts by @kayagokalp in #4456
- feat:
forc contract-id
print contract name before printing id for workspaces by @kayagokalp in #4440 - feat: exit with 101 from forc-test if there are failing tests by @kayagokalp in #4463
- feat: workspace level patch table added by @kayagokalp in #4086
- Add the LSP highlighting capability. by @JoshuaBatty in #4434
- Implement associated consts for ABIs by @tritao in #4425
New Contributors
- @calldelegation made their first contribution in #4479
Full Changelog: v0.37.1...v0.38.0