Releases: FuelLabs/sway
Releases · FuelLabs/sway
v0.10.0
What's Changed
- Fix nits with type arguments error messages by @emilyaherbert in #1102
- println_with_color & print_with_color should expect Result by @emilyaherbert in #1108
- Compiler should fail if a generic in a method shadows a generic in a struct by @emilyaherbert in #1110
- Add test for force transfer. by @nfurfaro in #1097
- Subcurrency Explanation by @SilentCicero in #1114
- Improve strings for IR. by @otrho in #1113
- Remove duplicated errors and warnings. by @emilyaherbert in #1112
- Add an
is_reference_type::<T>()
builtin. by @otrho in #1121 - Add a reentrancy module by @nfurfaro in #1115
- Misc minor docs fixes. by @adlerjohn in #1132
- Clean up SDK references in Book. by @adlerjohn in #1133
- Calling Contracts by @SilentCicero in #1134
- Update Summary and Blockchain chapters for calling contracts by @SilentCicero in #1135
- Switch all
--use-ir
build config options to--use-orig-asm
. by @otrho in #1130 - Fix typo in book by @adlerjohn in #1142
- Added check to
forc_abi
to fail onnon-contracts
by @eureka-cpu in #1105 - Updating contract tests after IR. Also, some cleanup. by @mohammadfawaz in #1141
- Fix Lsp Symbol Rename Bug by @JoshuaBatty in #1046
- Use const values for offsets in call_frames module by @nfurfaro in #1157
- Adding token minting helper functions. by @nfurfaro in #1154
- Add a reverse map for looking up metadata location indices. by @otrho in #1149
- Updated
abi
tests by @eureka-cpu in #1152 - Implement
EQ
trait forB512
by @nfurfaro in #1166 - Added error msg to
forc-init
whenproj-name
istest
by @eureka-cpu in #1144 - Add Cargo.toml linting to the CI pipeline by @Dentosal in #1139
- Implicitly add
std
dependency if unspecified by @mitchmindtree in #1137 - Explicitly declare
[lib]
and[[bin]]
targets forforc
by @mitchmindtree in #1174 - Remove
#![allow(dead_code)]
fromforc
along with dead code by @mitchmindtree in #1176 - print all parsed LSP tokens as warnings in VScode by @JoshuaBatty in #1148
- Fix reassignment of struct members in impl self by @mohammadfawaz in #1173
- Add support for
forc
CLI plugins by @mitchmindtree in #1178 - Appease clippy's latest gripes for CI by @mitchmindtree in #1193
- Allow forwarding options and arguments from
forc test
tocargo test
by @mitchmindtree in #1181 - Move
forc
's LSP support into a dedicatedforc-lsp
plugin crate by @mitchmindtree in #1179 - Make ec_recover funcs return Results by @nfurfaro in #1171
- Move
forc
's block explorer support into a dedicatedforc-explore
plugin crate by @mitchmindtree in #1180 - Parse document for tokens on every LSP on_change event by @JoshuaBatty in #1195
- Introduce the
ContractCaller<AbiName>
type by @sezna in #1187 - Add a CI job that checks for unused crate dependencies by @mitchmindtree in #1197
- Move
forc
'sfmt
command support into a dedicatedforc-fmt
plugin crate by @mitchmindtree in #1196 - IR syntax highlighting by @mohammadfawaz in #1204
- Fix generated asm for non-copy types of size 1 word by @mohammadfawaz in #1203
- Add a
forc plugins
command for listing all plugins by @mitchmindtree in #1199 - Update Sway book examples to use new features by @mohammadfawaz in #1208
- Remove duplicate errors by @mohammadfawaz in #1219
- bump to v0.10.0 by @mohammadfawaz in #1207
Full Changelog: v0.9.2...v0.10.0
v0.9.2
What's Changed
- Fix unhelpful error with incorrect number of type arguments. by @emilyaherbert in #1089
- Add build script for stdlib test projects by @nfurfaro in #1095
- Add Forc lockfiles to test projects by @nfurfaro in #1096
- Change default stdlib to point to this repo. by @adlerjohn in #1093
- Fix tests and docs to point stdlib to this repo. by @adlerjohn in #1094
- Fix ge/le/neq implementation and improve supertraits by @sezna in #1092
- v0.9.2 by @sezna in #1099
Full Changelog: v0.9.1...v0.9.2
v0.9.1
What's Changed
- Handle parsing tokens within FunctionApplication and TraitDeclaration by @JoshuaBatty in #1051
- Merge
sway-lib-core
andsway-lib-std
into this repository by @mitchmindtree in #1052 - bump to v0.9.1 by @sezna in #1088
Full Changelog: v0.9.0...v0.9.1
v0.9.0
What's Changed
- Bunch of book fixes by @adlerjohn in #1029
- More IR updates. by @otrho in #1034
- Fix for node dependency order for enum instantiations. by @otrho in #1036
- Use
stable
Rust toolchain when installing Forc -- update installation.md by @SilentCicero in #1032 - Remove unused Rust files for examples. by @adlerjohn in #1040
- Remove redundant
std
dependency. by @adlerjohn in #1039 - Change to authors from author. by @adlerjohn in #1038
- Bump fuel-core and add missing instructions. by @adlerjohn in #1037
- Improve support for git reference kinds (
branch
,tag
,rev
), improve fetching behaviour by @mitchmindtree in #1045 - Handle ImplicitReturnExpression variant when parsing lsp tokens by @JoshuaBatty in #1048
- Add WhileLoop variant for Lsp token parsing by @JoshuaBatty in #1049
- Add ReturnStatement variant for Lsp token parsing by @JoshuaBatty in #1050
- Walk git dependency repo to discover nested forc dependencies by @mitchmindtree in #978
- Updating
forc init
defaults by @mohammadfawaz in #1031 - Small fix to liveness analysis by @mohammadfawaz in #1041
- Bump fuel-core in CI to v0.5.0. by @adlerjohn in #1044
- Bump to v0.9.0 by @adlerjohn in #1043
New Contributors
- @SilentCicero made their first contribution in #1032
Full Changelog: v0.8.0...v0.9.0
v0.8.0
What's Changed
- Contracts and contract calls in IR by @mohammadfawaz in #976
- Moved
find_manifest
functions fromsway_util
intoforc_util
by @eureka-cpu in #957 - ci: bump fuel-core to v0.4.2 by @adlerjohn in #1001
- Add back testing with typescript link by @yirenlu92 in #1007
- Adding "ignore" to Rust code snippets to avoid having "main()" around them by @mohammadfawaz in #1008
- Remove unnecessary FIXME and fix the
*-abi.json
path by @mohammadfawaz in #1009 - Comment out reference type section for now by @yirenlu92 in #1010
- Simple test that uses Eq for bool by @mohammadfawaz in #1011
- Fix incrementor test by @mohammadfawaz in #1014
- Add IR verification. by @otrho in #909
- Add support for
package
field underdependencies
. If unspecified, require that dependency name matches package name. by @mitchmindtree in #1002 - Implement storage access via storage keyword by @sezna and @mohammadfawaz in #646
- Remove author manifest field. by @adlerjohn in #1021
- Some fixes to contract calls in both codegens by @mohammadfawaz in #1020
- Add forc run tx parameters. by @adlerjohn in #1023
- Generic impl selfs and associated fixes by @emilyaherbert in #913
- Reorganize Sway docs and compress some sections by @yirenlu92 in #980
- Logical not formatting fix by @binggh in #1026
- v0.8.0 by @sezna in #1027
New Contributors
- @binggh made their first contribution in #1026
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
- Implement
if let
expressions and associated fixes by @sezna in #815 - prints a warning for unused manifest keys by @eureka-cpu in #918
- Produce an error rather than panicking on unsupported dependency type by @mitchmindtree in #930
- Create nightly-cargo-audit.yml by @ellioty in #889
- Update docs with getting started guide by @yirenlu92 in #880
- checks if an entry point exists during manifest validation by @eureka-cpu in #942
- IR changes for storage accesses by @mohammadfawaz in #943
- Additional updates to the Sway book regarding the new contract call syntax by @mohammadfawaz in #951
- Migrate from using lspower to tower-lsp by @JoshuaBatty in #956
- removes forc clean cargo toml error by @eureka-cpu in #945
- Furnic/docs counter example by @nfurfaro in #958
- IR generation for storage accesses by @mohammadfawaz in #959
- Add tests and docs for while loops by @nfurfaro in #960
- Space out errors and warnings for readability by @sezna in #961
- Update lockfile by @adlerjohn in #966
- Organize test directories better by @nfurfaro in #965
- Add a contributing section to the sway book by @nfurfaro in #962
- Document Supertraits and
where
clauses by @ControlCplusControlV in #969 - Update default Forc manifest by @adlerjohn in #973
- Force all non-copy types to return using
RETD
regardless of their size. by @otrho in #971 - Update default Forc manifest Fuel dependencies. by @adlerjohn in #974
- Fix comment on default Forc manifest gen. by @adlerjohn in #975
- docs: remove WIP mention for
Tuples
type by @vnepveu in #982 - Minor fixes to book. by @adlerjohn in #985
- Use https for std and core deps. by @adlerjohn in #984
- Abort control flow upon a
return
,RET
, orRVRT
. by @sezna in #964 - Book fix: only include stdlib. by @adlerjohn in #987
- Add tests to sway-lsp by @JoshuaBatty in #986
- Use explicit branch for tests. by @adlerjohn in #989
- delete outdated test folder by @sezna in #990
- Remove unneeded core dep for test. by @adlerjohn in #994
- General cleanup of test manifest files. by @adlerjohn in #995
- Remove core dependency from example projects. by @adlerjohn in #991
- The compiler checks for exhaustive match arms in match expressions. by @emilyaherbert in #701
- Bump to v0.7.0 by @adlerjohn in #922
New Contributors
- @yirenlu92 made their first contribution in #880
Full Changelog: v0.6.1...v0.7.0
v0.6.1
What's Changed
- Update examples and E2E tests to use master branch of std, core by @mitchmindtree in #876
- Forc init project from template by @JoshuaBatty in #836
- Fix new
size_of
for IR. by @otrho in #857 - Rename
sway-server
tosway-lsp
by @mitchmindtree in #902 - Move forc's util and pkg related code into
forc-util
,forc-pkg
by @mitchmindtree in #901 - add docs for autocompletions and forc init template by @JoshuaBatty in #899
- Fix access to tuples in structs by @mohammadfawaz in #907
- Reverting parts of PR907 by @mohammadfawaz in #911
- Fix concurrent
forc
updates/builds with a uniquefetch_id
by @mitchmindtree in #917 - Bump to v0.6.1 by @adlerjohn in #921
Full Changelog: v0.6.0...v0.6.1
v0.6.0
What's Changed
- function to disallow whitespace & special characters in Forc manifest file by @eureka-cpu in #804
- Big old bag of IR fixes. by @otrho in #852
- Generate tab-autocompletion scripts for zsh, bash, fish, & powershell shells by @JoshuaBatty in #864
- adds anyhow where result used to be by @eureka-cpu in #860
- Fix Project Manifest File Names by @ControlCplusControlV in #871
- Address seemingly new clippy nits that block unrelated PRs by @mitchmindtree in #874
- Add forc
BuildPlan
. Change GitHub dependencies to general git support. AddForc.lock
for more deterministic builds. by @mitchmindtree in #825 - Update to Rust 2021 edition. by @adlerjohn in #877
- Update
forc
README for recentout/
directory and lock file changes by @mitchmindtree in #873 - Fix panic on empty contract impl with expected return value by @mohammadfawaz in #879
- Provision IR for future storage API. by @otrho in #866
- New syntax for contract method calls by @mohammadfawaz in #859
- refactor: replace the use of the
launch_and_deploy
function by @vnepveu in #867 - Bump dependencies. by @adlerjohn in #886
- Add --version to Forc by @adlerjohn in #887
- Remove forced args for example contracts. by @adlerjohn in #888
- changes format to join in path creation by @eureka-cpu in #890
- Avoid adding an unnecessary
move
from the body(ies) of an if/else block by @mohammadfawaz in #894 - Bump to v0.6.0 by @adlerjohn in #897
Full Changelog: v0.5.0...v0.6.0
v0.5.0
What's Changed
- adding slack notify to CI steps by @rfuelsh in #768
- Add build cache by @ellioty in #756
- Supertraits implementation by @mohammadfawaz in #752
- addr2line command for inverse source mapping by @Dentosal in #741
- Add forc explorer command by @alex-matthe in #674
- Bump lockfile internal deps to v0.4.0. by @adlerjohn in #775
- fix: fix formatter adding
--
to multipleuse
statements by @vnepveu in #773 - Descriptive error instead of allowing starting a node with
forc run
by @adlerjohn in #786 - Make missing manifest file error the same as Rust's. by @adlerjohn in #785
- Fix typo seralizatio -> serialization by @adlerjohn in #787
- Clean up forc run no node error string. by @adlerjohn in #789
- Fix forc explorer error string by @adlerjohn in #791
- Make forc explorer print out a valid URL. by @adlerjohn in #792
- Code is not guaranteed to run on Rust 1.53 stable. by @adlerjohn in #794
- Allow trailing comma for function parameters. by @adlerjohn in #793
- Remove codeowners file. by @adlerjohn in #790
- Move book examples into standalone projects. Include them in book via mdbook preprocessor. by @mitchmindtree in #766
- Add
build-all-examples
to Cargo.lock by @mitchmindtree in #803 - Reorder import items of a use statement lexicographically. by @sagunb in #797
- Add
--output-directory
toforc build
and related commands by @mitchmindtree in #796 - fix incorrect error printout when compiling a library with no errors by @sezna in #812
- fix: prevent panic when parsing empty string by @alex-matthe in #774
- forc: Add util
user_forc_directory
function by @mitchmindtree in #809 - Remove the unused
&mut dependency_graph
throughoutsway-core
by @mitchmindtree in #826 - Add spans via metadata to IR. by @otrho in #808
- Attempt to split up CI build steps into separate jobs by @mitchmindtree in #807
- New graph-coloring-based register allocator by @mohammadfawaz in #816
- Allow prefixes in any call path. by @emilyaherbert in #472
- Smaller IR changes. by @otrho in #828
- Fix panic on empty trait impl by @mohammadfawaz in #838
- CI is failing because the examples are trying to use a version of the standard library that is too advanced by @emilyaherbert in #839
- Fixing the implementation of supertraits to match Rust by @mohammadfawaz in #835
- Add
size_of
functionality. by @emilyaherbert in #818 - Avoid a panic when a Sway file starts with something unexpected by @mohammadfawaz in #843
- Update the spelling of the return register and the return length in the compiler for
asm
blocks by @mohammadfawaz in #848 - Remove
.vscode
by @adlerjohn in #849 - change Forc.toml to take an array of authors by @JoshuaBatty in #822
- Use Clap V3 instead of StructOpt by @JoshuaBatty in #850
- Bump to v0.5.0. by @adlerjohn in #853
New Contributors
- @mitchmindtree made their first contribution in #766
- @sagunb made their first contribution in #797
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- Fix starting line of warning spans by @sezna in #712
- Implement initial support for source mapping by @Dentosal in #656
- Add tests for implementing the Eq trait for Address by @nfurfaro in #672
- Version Bump Default Cargo.toml by @ControlCplusControlV in #703
- Add environment variable knobs to customise the E2E test runs. by @otrho in #707
- ci: build with all features by @adlerjohn in #708
- Revert instead of return when no function selectors match by @sezna in #639
- Defer integer literal type resolution until after type checking by @mohammadfawaz in #711
- Adding tests for force_transfer function. by @nfurfaro in #697
- Move subcurrency example to examples directory by @adlerjohn in #731
- Fixing an issue where library items are available without them being imported by @mohammadfawaz in #728
- Implementing tuple access via desugaring and indexing. by @emilyaherbert in #681
- Fix E2E tests for IR. by @otrho in #734
- Update ec_recover test to use updated B512 data structure. by @otrho in #725
- Multi import statements with self syntax by @mohammadfawaz in #729
- Importing the same item multiple times should be a compile error by @mohammadfawaz in #739
- Rename fuels-rs to fuels-contract by @digorithm in #740
- Document how
dep
works by @ControlCplusControlV in #735 - Fixing a generic types resolution bug by @mohammadfawaz in #736
- Update built_in_types.md by @pramitgaha in #750
- Bump fuel-tx, fuel-vm, and fuel-core versions. by @adlerjohn in #745
- Arrange forc.toml fields alphabetically by @eureka-cpu in #754
- Turning an instance of HashSet into BTreeSet in
asm_generation
by @mohammadfawaz in #759 - fix misspelled cargo in docs by @JoshuaBatty in #761
- update to latest rust docker image by @Voxelot in #762
- v0.4.0 by @sezna in #760
New Contributors
- @mohammadfawaz made their first contribution in #711
- @pramitgaha made their first contribution in #750
- @JoshuaBatty made their first contribution in #761
Full Changelog: v0.3.3...v0.4.0