Skip to content

Rust style errors#111

Merged
aarne merged 8 commits intomainfrom
rust_style_errors
Mar 7, 2026
Merged

Rust style errors#111
aarne merged 8 commits intomainfrom
rust_style_errors

Conversation

@aarne
Copy link
Contributor

@aarne aarne commented Mar 7, 2026

No description provided.

aarne added 4 commits March 7, 2026 14:58
…rors

- Improve formatted runtime errors for missing tools and source underlines.
- Fix segment-local `?.` traversal to ensure proper error handling.
- Introduce metadata attachment for Bridge errors to preserve source context.
- Update tests to validate new error formatting behavior for throw and panic fallbacks.
@changeset-bot
Copy link

changeset-bot bot commented Mar 7, 2026

🦋 Changeset detected

Latest commit: 7065cfb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@stackables/bridge Patch
@stackables/bridge-core Patch
@stackables/bridge-compiler Patch
@stackables/bridge-graphql Patch
@stackables/bridge-parser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aarne aarne linked an issue Mar 7, 2026 that may be closed by this pull request
23 tasks
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 7, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bridge 7065cfb Commit Preview URL

Branch Preview URL
Mar 07 2026, 04:34 PM

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

🐰 Bencher Report

Branchrust_style_errors
Testbedubuntu-latest

🚨 16 Alerts

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
compiled: array + SYNC tool-per-element 10Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.01 ns
(+9.79%)Baseline: 0.01 ns
0.01 ns
(106.93%)

compiled: array + SYNC tool-per-element 100Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.02 ns
(+19.70%)Baseline: 0.02 ns
0.02 ns
(103.75%)

compiled: array + tool-per-element 10Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.01 ns
(+11.54%)Baseline: 0.01 ns
0.01 ns
(104.76%)

compiled: array + tool-per-element 100Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.04 ns
(+18.42%)Baseline: 0.03 ns
0.04 ns
(111.38%)

compiled: chained 3-tool fan-outLatency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.00 ns
(+11.56%)Baseline: 0.00 ns
0.00 ns
(104.15%)

compiled: flat array 10 itemsLatency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.01 ns
(+17.34%)Baseline: 0.01 ns
0.01 ns
(110.03%)

compiled: flat array 100 itemsLatency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.02 ns
(+49.08%)Baseline: 0.01 ns
0.01 ns
(141.37%)

compiled: flat array 1000 itemsLatency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.12 ns
(+75.87%)Baseline: 0.07 ns
0.07 ns
(167.22%)

compiled: nested array 10x10Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.03 ns
(+35.21%)Baseline: 0.02 ns
0.02 ns
(126.90%)

compiled: nested array 20x10Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.05 ns
(+38.92%)Baseline: 0.03 ns
0.04 ns
(130.89%)

compiled: nested array 5x5Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.01 ns
(+23.90%)Baseline: 0.01 ns
0.01 ns
(117.28%)

exec: array + tool-per-element 10Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.12 ns
(+53.21%)Baseline: 0.08 ns
0.09 ns
(122.73%)

exec: array + tool-per-element 100Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
1.03 ns
(+52.78%)Baseline: 0.67 ns
0.85 ns
(120.12%)

exec: chained 3-tool fan-outLatency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.04 ns
(+214.17%)Baseline: 0.01 ns
0.02 ns
(188.54%)

exec: short-circuit (overdefinition bypass)Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.00 ns
(+30.11%)Baseline: 0.00 ns
0.00 ns
(110.05%)

exec: simple chain (1 tool)Latency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
0.01 ns
(+34.94%)Baseline: 0.01 ns
0.01 ns
(104.52%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
compiled: absolute baseline (passthrough, no tools)📈 view plot
🚷 view threshold
0.00 ns
(+7.67%)Baseline: 0.00 ns
0.00 ns
(99.61%)
compiled: array + SYNC tool-per-element 10📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.01 ns
(+9.79%)Baseline: 0.01 ns
0.01 ns
(106.93%)

compiled: array + SYNC tool-per-element 100📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.02 ns
(+19.70%)Baseline: 0.02 ns
0.02 ns
(103.75%)

compiled: array + tool-per-element 10📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.01 ns
(+11.54%)Baseline: 0.01 ns
0.01 ns
(104.76%)

compiled: array + tool-per-element 100📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.04 ns
(+18.42%)Baseline: 0.03 ns
0.04 ns
(111.38%)

compiled: chained 3-tool fan-out📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.00 ns
(+11.56%)Baseline: 0.00 ns
0.00 ns
(104.15%)

compiled: flat array 10 items📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.01 ns
(+17.34%)Baseline: 0.01 ns
0.01 ns
(110.03%)

compiled: flat array 100 items📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.02 ns
(+49.08%)Baseline: 0.01 ns
0.01 ns
(141.37%)

compiled: flat array 1000 items📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.12 ns
(+75.87%)Baseline: 0.07 ns
0.07 ns
(167.22%)

compiled: nested array 10x10📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.03 ns
(+35.21%)Baseline: 0.02 ns
0.02 ns
(126.90%)

compiled: nested array 20x10📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.05 ns
(+38.92%)Baseline: 0.03 ns
0.04 ns
(130.89%)

compiled: nested array 5x5📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.01 ns
(+23.90%)Baseline: 0.01 ns
0.01 ns
(117.28%)

compiled: short-circuit (overdefinition bypass)📈 view plot
🚷 view threshold
0.00 ns
(+6.97%)Baseline: 0.00 ns
0.00 ns
(99.14%)
compiled: simple chain (1 tool)📈 view plot
🚷 view threshold
0.00 ns
(+6.14%)Baseline: 0.00 ns
0.00 ns
(98.62%)
exec: absolute baseline (passthrough, no tools)📈 view plot
🚷 view threshold
0.00 ns
(+19.04%)Baseline: 0.00 ns
0.00 ns
(96.10%)
exec: array + SYNC tool-per-element 10📈 view plot
🚷 view threshold
0.10 ns
(+36.70%)Baseline: 0.07 ns
0.17 ns
(57.44%)
exec: array + SYNC tool-per-element 100📈 view plot
🚷 view threshold
0.90 ns
(+36.65%)Baseline: 0.66 ns
1.64 ns
(54.92%)
exec: array + tool-per-element 10📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.12 ns
(+53.21%)Baseline: 0.08 ns
0.09 ns
(122.73%)

exec: array + tool-per-element 100📈 view plot
🚷 view threshold
🚨 view alert (🔔)
1.03 ns
(+52.78%)Baseline: 0.67 ns
0.85 ns
(120.12%)

exec: chained 3-tool fan-out📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.04 ns
(+214.17%)Baseline: 0.01 ns
0.02 ns
(188.54%)

exec: flat array 10 items📈 view plot
🚷 view threshold
0.02 ns
(+11.17%)Baseline: 0.01 ns
0.03 ns
(63.97%)
exec: flat array 100 items📈 view plot
🚷 view threshold
0.08 ns
(+2.76%)Baseline: 0.08 ns
0.20 ns
(41.36%)
exec: flat array 1000 items📈 view plot
🚷 view threshold
0.75 ns
(-3.42%)Baseline: 0.78 ns
2.47 ns
(30.45%)
exec: nested array 10x10📈 view plot
🚷 view threshold
0.13 ns
(+4.59%)Baseline: 0.13 ns
0.27 ns
(50.85%)
exec: nested array 20x10📈 view plot
🚷 view threshold
0.26 ns
(+3.06%)Baseline: 0.25 ns
0.53 ns
(48.67%)
exec: nested array 5x5📈 view plot
🚷 view threshold
0.05 ns
(+7.09%)Baseline: 0.05 ns
0.08 ns
(65.44%)
exec: short-circuit (overdefinition bypass)📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.00 ns
(+30.11%)Baseline: 0.00 ns
0.00 ns
(110.05%)

exec: simple chain (1 tool)📈 view plot
🚷 view threshold
🚨 view alert (🔔)
0.01 ns
(+34.94%)Baseline: 0.01 ns
0.01 ns
(104.52%)

parse: large bridge (20 handles x 5 wires)📈 view plot
🚷 view threshold
1.35 ns
(+34.26%)Baseline: 1.01 ns
1.38 ns
(98.30%)
parse: simple bridge📈 view plot
🚷 view threshold
0.04 ns
(+12.55%)Baseline: 0.03 ns
0.05 ns
(79.37%)
🐰 View full continuous benchmarking report in Bencher


const next = resolved[segment];
const isPrimitiveBase =
resolved !== null &&
`Cannot read properties of ${result} (reading '${ref.path[i + 1]}')`,
const next = result[segment];
const isPrimitiveBase =
result !== null &&
@aarne aarne merged commit fc836e4 into main Mar 7, 2026
7 of 8 checks passed
@aarne aarne deleted the rust_style_errors branch March 7, 2026 16:54
@github-actions github-actions bot mentioned this pull request Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source Mapping

1 participant