rig icon indicating copy to clipboard operation
rig copied to clipboard

feat: Tool examples refactor

Open mkranjac opened this issue 8 months ago • 2 comments

  • [x] I have looked for existing issues (including closed) about this

Feature Request

Tool examples refactor

Motivation

We have at the moment >> 30 copy-paste tool examples, mostly Add, Adder and Subtract. It would remove a lot of duplicate code if we just reuse implementation from one place

Proposal

Refactor all common example tool(s) into a separate crate

Alternatives

mkranjac avatar Apr 30 '25 10:04 mkranjac

Yea, this would be a short-term win with our examples. tbh, the current set of examples is serving as a stopgap for our lack of comprehensive integration testing. Our short-medium term plan is to provide some GA that runs only on the genereated release PR so that we can comprehensively test for regressions thru the codebase.

This should let us clean up a ton of the built-in examples (maybe even we can add folders and such) and make it more consistent. This issue would be a great short-term win for rig tho to make it much easier to parse thru the examples!

0xMochan avatar Apr 30 '25 17:04 0xMochan