spin icon indicating copy to clipboard operation
spin copied to clipboard

Templates: add a Rust template for non-trigger components

Open tschneidereit opened this issue 1 year ago • 2 comments

This new template makes it easy to create a component that can be used as a dependency in another component. Until now, that required fully manually setting up a component and adding it to the Spin manifest, etc.

tschneidereit avatar Dec 19 '24 13:12 tschneidereit

@itowlson thank you for the comments! I addressed the smaller ones in a new push as much as I could. I tried to make new_application.supported = false work, but the template still shows up in the list for spin new. Is there some other magic incantation I'm missing?

tschneidereit avatar Jan 16 '25 14:01 tschneidereit

I'll have a look, that might be a bug with me not checking new/add compat until after template selection.

ETA: yep looks like we grab all the templates regardless of add vs new.

itowlson avatar Jan 16 '25 19:01 itowlson