v0.39.0
版本发布时间: 2023-05-17 22:05:16
FuelLabs/sway最新发布版本:v0.63.3(2024-08-29 14:59:12)
What's Changed
- ci: extract out verify_tags step from publish job into its own job by @bingcicle in https://github.com/FuelLabs/sway/pull/4496
- Run
cargo update
by @sdankel in https://github.com/FuelLabs/sway/pull/4499 - Fixes
star_import_with_reexports
. by @esdrubal in https://github.com/FuelLabs/sway/pull/4498 - Add block_header_hash() function by @nfurfaro in https://github.com/FuelLabs/sway/pull/4493
- Adds support for where clauses in impl self methods. by @esdrubal in https://github.com/FuelLabs/sway/pull/3836
- Added to msg_sender to prelude and removed from swayfiles by @calldelegation in https://github.com/FuelLabs/sway/pull/4483
- Implement module privacy rules by @IGI-111 in https://github.com/FuelLabs/sway/pull/4474
- Add Option and Result variants in prelude by @IGI-111 in https://github.com/FuelLabs/sway/pull/4504
- Where clauses on
impl
blocks by @emilyaherbert in https://github.com/FuelLabs/sway/pull/3731 - Fix parser panic on empty file by @IGI-111 in https://github.com/FuelLabs/sway/pull/4507
- Remove leftover dbg!s by @AlicanC in https://github.com/FuelLabs/sway/pull/4509
- Fix underflow in
StorageVec
'sinsert
by @IGI-111 in https://github.com/FuelLabs/sway/pull/4508 - Fix
--finalized-asm
output and docs by @IGI-111 in https://github.com/FuelLabs/sway/pull/4510 - add constants page to summary by @sarahschwartz in https://github.com/FuelLabs/sway/pull/4514
- Allow more than 12b (up to 18b now) stack offsets for local initialization by @vaivaswatha in https://github.com/FuelLabs/sway/pull/4515
- Inlining heuristic: return value demotion adds arg by @vaivaswatha in https://github.com/FuelLabs/sway/pull/4518
- Allow loops in predicates by @IGI-111 in https://github.com/FuelLabs/sway/pull/4526
- Fix ordering bug in
U256
by @IGI-111 in https://github.com/FuelLabs/sway/pull/4527 - docs: add section comments for devrel by @sarahschwartz in https://github.com/FuelLabs/sway/pull/4531
- chore: remove leftover
build.sh
by @iqdecay in https://github.com/FuelLabs/sway/pull/4529 - chore: rename
fn_args_layout
tofn_params_layout
inrustfmt.toml
by @kayagokalp in https://github.com/FuelLabs/sway/pull/4530 - const-demotion locals must be loaded in same basic block as its use. by @vaivaswatha in https://github.com/FuelLabs/sway/pull/4534
- feat(
forc doc
): Addimpl_trait
representation toItemBody
by @eureka-cpu in https://github.com/FuelLabs/sway/pull/4389 - Fixes method application self mutability check. by @esdrubal in https://github.com/FuelLabs/sway/pull/4538
- Introduce unique
field_id
inStorageKey
by @IGI-111 in https://github.com/FuelLabs/sway/pull/4537 - Goto links for LSP hover by @sdankel in https://github.com/FuelLabs/sway/pull/4539
- Parse
__ptr[T]
and__slice[T]
by @AlicanC in https://github.com/FuelLabs/sway/pull/4522 - Fix
StorageVec
bugs with use offield_id
by @bitzoic in https://github.com/FuelLabs/sway/pull/4543 - Update
StorageBytes
to usefield_id
overslot
by @bitzoic in https://github.com/FuelLabs/sway/pull/4541 - feat(fmt): improve newline insertion when comments are in between leaf spans by @bingcicle in https://github.com/FuelLabs/sway/pull/4548
- Add links to hover documentation by @sdankel in https://github.com/FuelLabs/sway/pull/4532
- Implements where clauses for Structs and Enums. by @esdrubal in https://github.com/FuelLabs/sway/pull/4557
- Update
StorableSlice
function naming to match storage API by @bitzoic in https://github.com/FuelLabs/sway/pull/4562 - Use intrinsics for base integer operations by @IGI-111 in https://github.com/FuelLabs/sway/pull/4553
- Bump to 0.39.0 by @IGI-111 in https://github.com/FuelLabs/sway/pull/4568
Breaking changes
- Module privacy rules are changing to the ones described in RFC0008. The new behavior can be enabled with a flag. Code that doesn't respect the rules will still compile by default in this version. A warning will be emitted if the flag isn't enabled, and the new behavior should be made the default in the next version
- New reserved keywords:
__ptr
and__slice
-
StorableSlice
functions have been renamed to match the storage API - new intrinsics have been added in a way that breaks IR compatibility
Full Changelog: https://github.com/FuelLabs/sway/compare/v0.38.0...v0.39.0
1、 forc-binaries-darwin_amd64.tar.gz 77.56MB
2、 forc-binaries-darwin_arm64.tar.gz 75.89MB
3、 forc-binaries-linux_amd64.tar.gz 81.45MB
4、 forc-binaries-linux_arm64.tar.gz 76.76MB