Skip to content

Snowcap: Add derive macro for Signal and Universal#434

Draft
Ph4ntomas wants to merge 3 commits intopinnacle-comp:mainfrom
Ph4ntomas:snowcap-derive
Draft

Snowcap: Add derive macro for Signal and Universal#434
Ph4ntomas wants to merge 3 commits intopinnacle-comp:mainfrom
Ph4ntomas:snowcap-derive

Conversation

@Ph4ntomas
Copy link
Contributor

@Ph4ntomas Ph4ntomas commented Feb 15, 2026

This PR adds derive macro for Signal and Universal.

The Signal macro add bounds Clone + 'static automatically on generic types. I did not implement any validation/pruning yet, meaning deriving signal for :

struct<Msg: Clone> AAA {
   [...]
}

Will lead to the following code being generated:

impl<Msg: Clone + Clone + 'static> Signal for AAA<Msg> {}

Which I don't quite like.

Draft until #430 is merged.

@Ph4ntomas Ph4ntomas force-pushed the snowcap-derive branch 4 times, most recently from 9d89fc4 to 60aac80 Compare February 21, 2026 08:11
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.

1 participant