v0.61.0
版本发布时间: 2024-06-19 19:50:35
FuelLabs/sway最新发布版本:v0.63.3(2024-08-29 14:59:12)
What's Changed
- Unify arguments before desugaring contract call by @xunilrj in https://github.com/FuelLabs/sway/pull/6053
- chore: fund test suite's account by default in local-test node by @kayagokalp in https://github.com/FuelLabs/sway/pull/5935
- chore: fix some comments by @cuishuang in https://github.com/FuelLabs/sway/pull/5989
- Show forc plugin path warning only in verbose mode by @sdankel in https://github.com/FuelLabs/sway/pull/6004
- fix: fund default signer account in ci by @kayagokalp in https://github.com/FuelLabs/sway/pull/6055
- Add examples on how to import storage types to the book by @bitzoic in https://github.com/FuelLabs/sway/pull/6051
- Implement
EqWithEngines
andPartialEqWithEngines
for parsed declarations by @tritao in https://github.com/FuelLabs/sway/pull/6054 - Rename module terminology to program by @JoshuaBatty in https://github.com/FuelLabs/sway/pull/6056
- chore: Improve the error message for unresolved manifest reference by @sdankel in https://github.com/FuelLabs/sway/pull/6061
- Add generated bytecode size to verbose test output by @ironcev in https://github.com/FuelLabs/sway/pull/6063
- feat: Add primitive types to forc-doc by @sdankel in https://github.com/FuelLabs/sway/pull/6032
- Tuning the optimizer pipeline by @vaivaswatha in https://github.com/FuelLabs/sway/pull/6072
- feat: Updating all templates to rust v0.62.0 by @calldelegation in https://github.com/FuelLabs/sway/pull/6067
- Bash script to help benchmark the compiler by @xunilrj in https://github.com/FuelLabs/sway/pull/6076
- Add
EnumVariant
parsed decl and minor refactors to namespace-related code by @tritao in https://github.com/FuelLabs/sway/pull/6062 - Set code owners by @IGI-111 in https://github.com/FuelLabs/sway/pull/6078
- Unify parsed and typed symbols namespace maps. by @tritao in https://github.com/FuelLabs/sway/pull/6070
- Fix code owner precedence by @IGI-111 in https://github.com/FuelLabs/sway/pull/6082
- Refactor trait handling when doing namespace item imports. by @tritao in https://github.com/FuelLabs/sway/pull/6080
- Do not panic when there is auto impl type check by @xunilrj in https://github.com/FuelLabs/sway/pull/6094
- chore: bump fuel-core to v0.27.0 by @kayagokalp in https://github.com/FuelLabs/sway/pull/6090
- fix: remove Forc.lock files from template projects by @sdankel in https://github.com/FuelLabs/sway/pull/6101
- chore: add issue templates by @sdankel in https://github.com/FuelLabs/sway/pull/6097
- Update codeowners
application-dev
toswayex
by @bitzoic in https://github.com/FuelLabs/sway/pull/6095 - Automatically import contract return type by @xunilrj in https://github.com/FuelLabs/sway/pull/6089
- Add primitive conversions submodules to the prelude by @bitzoic in https://github.com/FuelLabs/sway/pull/6105
- Increase test coverage on std-lib by @bitzoic in https://github.com/FuelLabs/sway/pull/6087
- Faster access for configurables by @xunilrj in https://github.com/FuelLabs/sway/pull/6058
- Fix issue with name clash on auto implementation of AbiEncode and AbiDecode by @jjcnn in https://github.com/FuelLabs/sway/pull/6044
- Update
Inputs
library return types to match VM specs by @bitzoic in https://github.com/FuelLabs/sway/pull/6108 - Fix mod by zero constant folding by @xunilrj in https://github.com/FuelLabs/sway/pull/6112
- Use immediates instead of data section when possible by @vaivaswatha in https://github.com/FuelLabs/sway/pull/6098
- Adds method and function deduplication to frontend. by @esdrubal in https://github.com/FuelLabs/sway/pull/5967
- Change
StorageMap
'sremove()
to usesha256(key, self.field_id())
instead ofsha256(key, self.slot())
by @bitzoic in https://github.com/FuelLabs/sway/pull/6135 - Fix doc comment by @GearedPaladin in https://github.com/FuelLabs/sway/pull/6138
- Unify namespace import logic for parsed and typed declarations by @tritao in https://github.com/FuelLabs/sway/pull/6057
- chore: fix some comments by @tsinghuacoder in https://github.com/FuelLabs/sway/pull/6139
- Storage name based slots and namespaces. by @esdrubal in https://github.com/FuelLabs/sway/pull/6064
- Resolve memory overflow when
b256::TryFrom<Bytes>
is not 32 bytes by @bitzoic in https://github.com/FuelLabs/sway/pull/6136 - Support for string slices in contracts/predicates/scripts by @xunilrj in https://github.com/FuelLabs/sway/pull/6079
- Bump to v0.61.0 by @IGI-111 in https://github.com/FuelLabs/sway/pull/6144
Breaking Changes
- now using fuel-core 0.27.0
- Storage slot calculations use a new formula to enable namespacing syntax, please consult the documentation about storage namespacing and the
in
keyword for more details - Inputs and return types have been updated according to VM spec changes
New Contributors
- @cuishuang made their first contribution in https://github.com/FuelLabs/sway/pull/5989
- @tsinghuacoder made their first contribution in https://github.com/FuelLabs/sway/pull/6139
Full Changelog: https://github.com/FuelLabs/sway/compare/v0.60.0...v0.61.0
1、 forc-binaries-darwin_amd64.tar.gz 81.09MB
2、 forc-binaries-darwin_arm64.tar.gz 79.82MB
3、 forc-binaries-linux_amd64.tar.gz 88.45MB
4、 forc-binaries-linux_arm64.tar.gz 85.02MB