v0.63.0
版本发布时间: 2024-08-20 01:14:20
FuelLabs/sway最新发布版本:v0.63.3(2024-08-29 14:59:12)
What's Changed
- Remove support for namespace attribute by @IGI-111 in https://github.com/FuelLabs/sway/pull/6279
- Make module name mandatory and private by @jjcnn in https://github.com/FuelLabs/sway/pull/6271
- Cache Build Plans in language server by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6281
- Forbid configurables in pattern matching and shadowing by @ironcev in https://github.com/FuelLabs/sway/pull/6289
- feat: Enhance forc-deploy UX with dialoguer by @sdankel in https://github.com/FuelLabs/sway/pull/6278
- cache pid lock files to reduce IO operations by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6297
- Add documentation about Undefined Behavior by @IGI-111 in https://github.com/FuelLabs/sway/pull/6302
- fix: update the document link for Manual Storage Management. by @dima-safin-2025 in https://github.com/FuelLabs/sway/pull/6301
- Add
core
andstd
dependency test filtering to the test runner by @tritao in https://github.com/FuelLabs/sway/pull/6299 - chore: correction typos index.md by @osrm in https://github.com/FuelLabs/sway/pull/6303
- Re-pin LSP tests to published version of
std
and re-enable commented out tests by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6315 - chore: bump forc-pkg deps and fix clippy warnings by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6311
- Fix range OOB bug in the language server by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6314
- Additionally test associated constants by @ironcev in https://github.com/FuelLabs/sway/pull/6349
- Support for slice new syntax &[T] by @xunilrj in https://github.com/FuelLabs/sway/pull/6307
- Correct code_size function implementation by @SwayStar123 in https://github.com/FuelLabs/sway/pull/6304
- Introduce a new symbol resolving pass by @tritao in https://github.com/FuelLabs/sway/pull/5809
- Revert when loading 0 size typed storagevec by @SwayStar123 in https://github.com/FuelLabs/sway/pull/6358
- Slice/Array intrinsics:
__slice
and__elem_at
by @xunilrj in https://github.com/FuelLabs/sway/pull/6282 - Move std-lib
StorageKey
tests to in-language tests by @bitzoic in https://github.com/FuelLabs/sway/pull/6363 - feat: create and deploy a reference proxy contract for contracts with
[proxy]
enabled by @kayagokalp in https://github.com/FuelLabs/sway/pull/6069 - Fixes assert in type_check_encode_buffer_empty. by @esdrubal in https://github.com/FuelLabs/sway/pull/6364
- Fixes crash on encode_buffer_append with wrong args. by @esdrubal in https://github.com/FuelLabs/sway/pull/6365
- docs: Update docs for forc-client by @sdankel in https://github.com/FuelLabs/sway/pull/6403
- fix size of configurable buffer for enums by @xunilrj in https://github.com/FuelLabs/sway/pull/6366
- Add error for duplicate struct field initialization by @IGI-111 in https://github.com/FuelLabs/sway/pull/6401
- Fixes unreachable macro crashing compiler. by @esdrubal in https://github.com/FuelLabs/sway/pull/6362
- ASM blocks handling: inlining, DCE, ASM returns without return register by @ironcev in https://github.com/FuelLabs/sway/pull/6404
- Fix broken documentation link by @IGI-111 in https://github.com/FuelLabs/sway/pull/6400
- Fix bugs in memcpyopt by @vaivaswatha in https://github.com/FuelLabs/sway/pull/6359
- Revert when overflow using pow for u8, u16, u32 by @SwayStar123 in https://github.com/FuelLabs/sway/pull/6340
- Allow forc deploy to submit transaction without waiting for commit confirmation by @luisburigo in https://github.com/FuelLabs/sway/pull/6294
- Filter ABI supertrait methods from contract entry generation by @tritao in https://github.com/FuelLabs/sway/pull/6402
- Fix
impl self
node order dependency pass key collision issue. by @tritao in https://github.com/FuelLabs/sway/pull/6407 - Implement mutability checks for references to aggregate type fields. by @tritao in https://github.com/FuelLabs/sway/pull/6415
- Updates JSON ABI, LDC, BSIZ, BLDD and ED19. by @esdrubal in https://github.com/FuelLabs/sway/pull/6254
- Implement Typed Module Caching by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6280
- Better checks at
type_check_analyze
by @xunilrj in https://github.com/FuelLabs/sway/pull/6410 - Update README.md by @sdankel in https://github.com/FuelLabs/sway/pull/6423
- Allow variable length message in ed_verify by @SwayStar123 in https://github.com/FuelLabs/sway/pull/6419
- Increase Safety when introspecting transaction inputs by @bitzoic in https://github.com/FuelLabs/sway/pull/6405
- Increase Safety when introspecting transactions by @bitzoic in https://github.com/FuelLabs/sway/pull/6418
- Increase Safety when introspecting transaction outputs by @bitzoic in https://github.com/FuelLabs/sway/pull/6414
- Update rust version in forc docker image by @Voxelot in https://github.com/FuelLabs/sway/pull/6422
- chore: bump sdk version by @sdankel in https://github.com/FuelLabs/sway/pull/6430
- feat: Implement ldc based automatic contract chunking by @kayagokalp in https://github.com/FuelLabs/sway/pull/6250
- fix: use proxy bin with storage slots in a namespace by @kayagokalp in https://github.com/FuelLabs/sway/pull/6429
- Fix broken forc command docs by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6424
- Fix
scwq
instruction and "phantom" error in purity checks by @ironcev in https://github.com/FuelLabs/sway/pull/6432 - chore: bump to 0.63.0 by @sdankel in https://github.com/FuelLabs/sway/pull/6421
New Contributors
- @dima-safin-2025 made their first contribution in https://github.com/FuelLabs/sway/pull/6301
- @osrm made their first contribution in https://github.com/FuelLabs/sway/pull/6303
- @luisburigo made their first contribution in https://github.com/FuelLabs/sway/pull/6294
Breaking changes
- the
#[namespace()]
attribute is no longer supported. The new namespace syntax is preferred moving forward and the newin
keyword usage can be used for backwards compatibility - Configurables are no longer allowed in pattern matching and shadowing
- There have been significant changes the the ABI specification format
-
ed_verify
has been changed to support variable length messages - some
std
functions now return anOption
instead or reverting - some
std
functions now return types updated to match the specification - some
std
functions have been made private are will no longer be available
Full Changelog: https://github.com/FuelLabs/sway/compare/v0.62.0...v0.63.0