What's Changed
- ci: use cross to fix arm64 release step by @bingcicle in #3476
- Support
log
in tests by @vaivaswatha in #3483 - Fixes compiler picking wrong trait implementation for tuples. by @esdrubal in #3486
- Rename core::num to core::primitives by @nfurfaro in #3488
- Add CI job for unit tests by @nfurfaro in #3489
- Fixes error when dependency variable is used as function parameter. by @esdrubal in #3494
- Adds a new forc build flag to print the DCA graph. by @tritao in #3493
- Update hash_enum docs by @K1-R1 in #3500
- Remove a known issue about arrays being immutable by @mohammadfawaz in #3502
U128
andU256
division optimisation by @rostyslavtyshko in #3497- Fix DCA warnings for struct field access prefix expressions. by @tritao in #3503
- Fix DCA warnings for expressions reachable from while loop conditions. by @tritao in #3504
- Use borrowed types instead of owned types so that
TyProgram
is not consumed after IR generation by @kayagokalp in #3495 - ci: pin linux release steps to ubuntu-20.04 by @bingcicle in #3506
- Add a DCA test for unused private functions in a library. by @tritao in #3507
- Introduce additional spans in Array and String types by @mohammadfawaz in #3499
U256
Subtraction fix by @rostyslavtyshko in #3510- Introduce a way for entries generated by tests to be associated with their related function declaration by @kayagokalp in #3509
- Add CSS styling to
forc doc
by @eureka-cpu in #3471 - Add favicon to
forc doc
by @eureka-cpu in #3541 - LSP: Refactor the API by @JoshuaBatty in #3463
- feat:
#[test(should_revert)]
attribute to indicate a unit test should revert by @kayagokalp in #3490 - Add
--document-private-items
option toforc doc
by @eureka-cpu in #3537 - Fixes issue of trait implementation not beeing used. by @esdrubal in #3391
- Introduce the Sway reference, a more technical Sway source of documentation. by @Braqzen in #2562
- Bump to
fuels 0.32
by @mohammadfawaz in #3539 - Fix typo in compile error around GM opcodes in external contexts. by @sezna in #3547
- Fix DCA warnings for log intrinsic and stdlib function by @tritao in #3538
- Add introductory sentence to the sway reference by @sezna in #3548
- Adds function returning only
fn signature
in function code blocks by @eureka-cpu in #3545 - Summarize the names of the failing tests at the bottom of the test runner by @emilyaherbert in #3550
- Include test function span information (file, line number) in forc test output by @kayagokalp in #3546
- Fix span for unknown enum variant error by @mohammadfawaz in #3551
- Prevent stack overflow when defining a trait method with certain types by @emilyaherbert in #3280
- New
Bytes
type module for the stdlib by @nfurfaro in #3454 - Check for errors after type checking type arguments. by @vaivaswatha in #3569
- fix: reserved keywords are checked before creating dir with forc new by @kayagokalp in #3566
- typo in
U256
multiplication by @rostyslavtyshko in #3568 - formatter: fix handling of statements ending with
;
inif else
blocks by @bingcicle in #3557 - Add a way to specify salt while declaring contract dependencies by @kayagokalp in #3531
- Fix DCA warnings for impl trait methods. by @tritao in #3427
- Checks around
ref
andmut
params of ABIs and Traits by @vaivaswatha in #3573 - Fix DCA warnings for unused struct fields in contracts. by @tritao in #3562
- feat: Implement workspace testing by @kayagokalp in #3361
- Fix CI failure by running
cargo update
and bumpingfuel-core
by @mohammadfawaz in #3581 - Eliminate some warnings in the
Bytes
library by @mohammadfawaz in #3587 - Remove duplicate gas from std by @jtriley-eth in #3588
- formatter: introduce
context_after
; fix comment between if-else by @bingcicle in #3556 - LSP: Collect tokens from str's, tuples and arrays by @JoshuaBatty in #3578
- Correctly compute predicate data pointer in codegen by @mohammadfawaz in #3523
- Introduce
__smo
intrinsic by @mohammadfawaz in #3564 - Add types for the traversal stages so we can store
TypeEngine
andTokenMap
by @JoshuaBatty in #3593 - Bump to
v0.32.0
by @mohammadfawaz in #3602 - Remove a forward slash in
Cargo.toml
forforc-test
by @mohammadfawaz in #3603
Breaking Changes
- The library
core::num
has been renamed tocore::primitives
. - The function
std::context::gas
has been removed in favour ofstd::registers::context_gas()
. - This version of
forc
is only compatible withfuel-core v0.15
.
New Contributors
- @jtriley-eth made their first contribution in #3588
Full Changelog: v0.31.3...v0.32.0