Avatar for the FuelLabs user
FuelLabs
sway
BlogDocsChangelog

Add `#[abi_name(name = "foo")]` attribute to rename ABI items.

#7057Merged
Comparing
tritao:annotation-abi-name
(
b753849
) with
master
(
b68a386
)
CodSpeed Performance Gauge
-19%
Regressions
1
Untouched
24

Benchmarks

Failed

code_lensRegression
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_lens
CodSpeed Performance Gauge
-19%
4.9 µs6 µs

Passed

format
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::format
CodSpeed Performance Gauge
+1%
476.9 ms472.4 ms
semantic_tokens
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::semantic_tokens
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::rename
CodSpeed Performance Gauge
0%
4.9 ms4.9 ms
find_all_references
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::find_all_references
CodSpeed Performance Gauge
0%
4.9 ms4.9 ms
highlight
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::highlight
CodSpeed Performance Gauge
0%
5.3 ms5.3 ms
code_action
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_action
CodSpeed Performance Gauge
0%
4.9 ms4.9 ms
tokens_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_at_position
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
parent_decl_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::parent_decl_at_position
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
build_std_lib_docs
forc-plugins/forc-doc/benches/bench_main.rs::benches::benchmarks::build_std_lib_docs
CodSpeed Performance Gauge
0%
299.2 ms299 ms
tokens_for_file
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_for_file
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
hover
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::hover
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
prepare_rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::prepare_rename
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
compile
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::compile
CodSpeed Performance Gauge
0%
5.3 s5.3 s
inlay_hints
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::inlay_hints
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
document_symbol
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::document_symbol
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
completion
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::completion
CodSpeed Performance Gauge
0%
4.9 ms4.9 ms
goto_definition
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::goto_definition
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
token_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::token_at_position
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
idents_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::idents_at_position
CodSpeed Performance Gauge
0%
468.5 µs469.5 µs
tokens_for_program
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_for_program
CodSpeed Performance Gauge
0%
535.3 µs537.4 µs
did_change_with_caching
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::did_change_with_caching
CodSpeed Performance Gauge
0%
3.8 ms3.8 ms
open_all_example_workspace_members
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::open_all_example_workspace_members
CodSpeed Performance Gauge
0%
9.5 s9.6 s
traverse
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::traverse
CodSpeed Performance Gauge
0%
113.3 ms113.9 ms
on_enter
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::on_enter
CodSpeed Performance Gauge
-1%
124.7 µs125.5 µs

Commits

Click on a commit to change the comparison range
Base
master
b68a386
-0.15%
Address review feedback.
591b97a
3 months ago
by tritao
+0.25%
Improve `is_valid_identifier_or_path` and improve robustness.
271a850
3 months ago
by tritao
-0.15%
Add improved checking for ABI names.
9b1b4af
2 months ago
by tritao
+0.03%
Merge branch 'master' into annotation-abi-name
e65c360
2 months ago
by IGI-111
+0.06%
Merge branch 'master' into annotation-abi-name
f127497
2 months ago
by tritao
-19.15%
Merge branch 'master' into annotation-abi-name
b753849
2 months ago
by tritao
© 2025 CodSpeed Technology
Home Terms Privacy Docs