What's Changed
- Document workspaces in The Sway Book by @kayagokalp in #3323
- Some stdlib cleanup by @mohammadfawaz in #3349
- Refactor E2E CLI runner. by @tritao in #3294
- Testing and fixing CEI pattern analysis (follow up for #3168) by @anton-trunov in #3356
- Add missing unit testing page to the sidebar in the Sway Book by @kayagokalp in #3360
- Add markdown formatting & support to
forc doc
by @eureka-cpu in #3373 - Adds array out of bounds errors at compile time. by @esdrubal in #3233
- Adds more opcodes to check_invalid_opcodes for predicates. by @esdrubal in #3291
U128
Multiplication optimisation by @rostyslavtyshko in #3364- Fix "Sway Quickstart" by @PaulRBerg in #3388
- Cleanup reallocations in
forc doc
markdown function by @eureka-cpu in #3382 - Minor refactor of
ast_node/expression/intrinsic_function.rs
and documenting intrinsics by @mohammadfawaz in #3379 - Fixes local const shadowed by global const with same name. by @esdrubal in #3402
- Nix the global
TYPE_ENGINE
by @Centril in #3353 - Fixes method Eq not found when used with where clause. by @esdrubal in #3348
- Enhance docs and add a few methods for
option.sw
by @mohammadfawaz in #3322 - Improve warnings on unnecessary storage annotations by @anton-trunov in #3414
U256
multiplication optimisation by @rostyslavtyshko in #3415- Fix error message for arity mismatch on method calls by @anton-trunov in #3416
- Document CEI pattern analysis in Sway book by @anton-trunov in #3393
- Improve E2E test runner error reporting for failing tests. by @tritao in #3417
- Add a check in codegen to ensure all registers are initialised before use. by @otrho in #3424
- Fix CEI analysis storage map/vec false positives by @anton-trunov in #3392
- Use
fuels-types
instead ofsway-types
for JSON ABI types by @mohammadfawaz in #3340 - Update the E2E test runner to report shell exit code on failure by @tritao in #3428
- Revert changes to while loop handling in analyze_return_paths by @mohammadfawaz in #3433
- feat: add no-span-debug feature for omitting span for debug purposes by @kayagokalp in #3434
- feat: add
[workspace]
table to workspace manifest files by @kayagokalp in #3421 - Disallows while loops in predicates. by @esdrubal in #3400
- Introduce code relocation to avoid the need for far jumps. by @otrho in #3371
- Add support for mutable arrays. by @tritao in #3153
- fix: inject contract_dependency::CONTRACT_ID as b256 by @kayagokalp in #3412
- Output manifest file parsing errors/warnings for workspace members by @kayagokalp in #3367
- Do not progress with IR generation if
deterministically_aborts
by @vaivaswatha in #3460 - Do not print parens for parameterless attributes in swayfmt by @anton-trunov in #3465
- Bump to
v0.31.2
by @mohammadfawaz in #3461
New Contributors
- @PaulRBerg made their first contribution in #3388
Full Changelog: v0.31.1...v0.31.2