Avatar for the FuelLabs user
FuelLabs
sway
BlogDocsChangelog

Performance History

Latest Results

fix typos
xunilrj/fix-sroa-load-multi-blocks
8 minutes ago
Fix `get_runtime_representation` and const-eval of `EnumInstantiation` (#7692) ## Description This PR: - fixes the runtime representations of `TypeContent::Array` and `TypeContent::Union` calculated in `get_runtime_representation`: - Arrays were padded to word boundary, which originally caused #7690. - Unions were always having a size of minimum 8 bytes, even if all their variants were zero-sized. Union variants were right-padded to word boundary, instead of being left-padded. - fixes the `const_eval` of `EnumInstantiation` to not add variant payloads if the enum is compiled only to a tag. The PR also improves compilation of enums whose all variants are zero-sized. Up to now, it was required that all the variants must be unit for the enum to be compiled only to a tag. This PR loosens this requirement too all zero-sized types. Additionally, the PR: - adds IR verification that checks that a global's initializer fits to the expected global type. - in `MemoryRepresentation` adds padding in struct fields to a padded field, and does not inserts them as additional elements. This accurately reflects what gets padded and the underlying struct structure. - makes `insta::assert_snapshot` fail if `logs` get changed in tests that use them, like in the `type_layout` test. - deletes redundant ABI JSON validation from `match` expressions tests. Three tests extended or added in this PR use the same types and those are currently copy-pasted across the tests. We had this situation before. We will create a separate utility project that provides common types and traits for tests as a part of #7693. - Fixes #7690. - Fixes #7691. ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
master
11 minutes ago
fix rebase issues
xunilrj/fix-sroa-load-multi-blocks
1 hour ago
Fix potential double-panick isssue
ironcev/fix-get-runtime-representation
5 hours ago
Fix issue with not compiling zero-sized initializers
ironcev/fix-get-runtime-representation
9 hours ago
Fix fmt issues
ironcev/fix-get-runtime-representation
11 hours ago
Bump serde_with from 3.12.0 to 3.21.0 in /test/src/sdk-harness (#7687) Bumps [serde_with](https://github.com/jonasbb/serde_with) from 3.12.0 to 3.21.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jonasbb/serde_with/releases">serde_with's releases</a>.</em></p> <blockquote> <h2>serde_with v3.21.0</h2> <h3>Security</h3> <ul> <li> <p><a href="https://github.com/jonasbb/serde_with/security/advisories/GHSA-7gcf-g7xr-8hxj">GHSA-7gcf-g7xr-8hxj</a>: KeyValueMap serialization panics on empty sequence or map entries Bad or attacker controlled values could cause a panic while allocating too large values. Fixed in <a href="https://redirect.github.com/jonasbb/serde_with/issues/966">#966</a> by setting a maximum allocation size during the creation of collections like <code>Vec</code> or sets.</p> <p>Thanks to <a href="https://github.com/7thParkk"><code>@​7thParkk</code></a> for reporting the issue.</p> </li> </ul> <h3>Added</h3> <ul> <li>Add <code>NoneAsZero</code> adapter that maps <code>Option&lt;NonZero*&gt;</code> to a plain integer, encoding <code>None</code> as <code>0</code> by <a href="https://github.com/SAY-5"><code>@​SAY-5</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/486">#486</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Re-enable link-to-definition on docs.rs (<a href="https://redirect.github.com/jonasbb/serde_with/issues/964">#964</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Fix some doc links to point to the correct types (<a href="https://redirect.github.com/jonasbb/serde_with/issues/963">#963</a>)</li> <li>Re-enable <code>unused_qualifications</code> and fix the resulting findings by <a href="https://github.com/lms0806"><code>@​lms0806</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/962">#962</a>)</li> </ul> <h2>serde_with v3.20.0</h2> <h3>Added</h3> <ul> <li>Add support for <code>base58</code> encoding, similar to the existing <code>base64</code> setup by <a href="https://github.com/mitinarseny"><code>@​mitinarseny</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/943">#943</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Extend <code>base64</code> with <code>schemars</code> support by <a href="https://github.com/mitinarseny"><code>@​mitinarseny</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/9949">#9949</a>)</li> </ul> <h2>serde_with v3.19.0</h2> <h3>Added</h3> <ul> <li> <p>Add support for <code>hashbrown</code> v0.17 (<a href="https://redirect.github.com/jonasbb/serde_with/issues/940">#940</a>)</p> <p>This extends the existing support for <code>hashbrown</code> to the newly released version.</p> </li> </ul> <h2>serde_with v3.18.0</h2> <h3>Added</h3> <ul> <li>Support <code>OneOrMany</code> with more sequence and set types (<a href="https://redirect.github.com/jonasbb/serde_with/issues/929">#929</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Bump MSRV to 1.88 due to the <code>darling</code> dependency</li> </ul> <h2>serde_with v3.17.0</h2> <h3>Added</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/jonasbb/serde_with/commit/0f4ca67e1f8fc4679e850f3a566d454fb30953c1"><code>0f4ca67</code></a> Update changelog for 3.21.0 (<a href="https://redirect.github.com/jonasbb/serde_with/issues/967">#967</a>)</li> <li><a href="https://github.com/jonasbb/serde_with/commit/7654841be1d1702a65afc0f839c67c36563c8188"><code>7654841</code></a> Update changelog for 3.21.0</li> <li><a href="https://github.com/jonasbb/serde_with/commit/c8a1d820ea25df01692b367058d587343e199389"><code>c8a1d82</code></a> Protect all collection creations against capacity overflow by using `size_hin...</li> <li><a href="https://github.com/jonasbb/serde_with/commit/6ad5fa5b474270f50016b4cc983e37f25f097ba4"><code>6ad5fa5</code></a> Properly feature gate the <code>vec_with_capacity_cautious</code> function</li> <li><a href="https://github.com/jonasbb/serde_with/commit/ef7d1417e3eacd0077f029763109368ee05c1c22"><code>ef7d141</code></a> Protect all collection creations against capacity overflow by using `size_hin...</li> <li><a href="https://github.com/jonasbb/serde_with/commit/a348da35fe808852a1b7e6fa890b425ad001d3f1"><code>a348da3</code></a> Add serde_as deserialize_as explain (<a href="https://redirect.github.com/jonasbb/serde_with/issues/958">#958</a>)</li> <li><a href="https://github.com/jonasbb/serde_with/commit/2e5bc20e29e1d42eb9c85ab503964130eb1ea62e"><code>2e5bc20</code></a> Bump the github-actions group with 3 updates (<a href="https://redirect.github.com/jonasbb/serde_with/issues/965">#965</a>)</li> <li><a href="https://github.com/jonasbb/serde_with/commit/927a3d69c3cecdf415f7d7662a0521894d313261"><code>927a3d6</code></a> Bump the github-actions group with 3 updates</li> <li><a href="https://github.com/jonasbb/serde_with/commit/62d14ec637834259e0fab59ea84b87ca329e81c1"><code>62d14ec</code></a> Enable link-to-definition on docs.rs again, after the upstream issue was reso...</li> <li><a href="https://github.com/jonasbb/serde_with/commit/4584d94f685b66b96bdcf07bffe76e5df0819ea2"><code>4584d94</code></a> Enable link-to-definition on docs.rs again, after the upstream issue was reso...</li> <li>Additional commits viewable in <a href="https://github.com/jonasbb/serde_with/compare/v3.12.0...v3.21.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde_with&package-manager=cargo&previous-version=3.12.0&new-version=3.21.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/FuelLabs/sway/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Igor Rončević <ironcev@hotmail.com>
master
1 day ago
update tests
xunilrj/opt-get-config
1 day ago

Latest Branches

CodSpeed Performance Gauge
0%
Fix sroa load multi blocks#7694
20 minutes ago
2bc1bb3
xunilrj/fix-sroa-load-multi-blocks
CodSpeed Performance Gauge
-15%
Fix `get_runtime_representation` and const-eval of `EnumInstantiation`#7692
5 hours ago
201d1b7
ironcev/fix-get-runtime-representation
CodSpeed Performance Gauge
+11%
1 day ago
e3c79a8
xunilrj/opt-get-config
© 2026 CodSpeed Technology
Home Terms Privacy Docs