Skip to content

Snowcap: Add derive macro for Signal and Universal#434

Merged
Ottatop merged 3 commits intopinnacle-comp:mainfrom
Ph4ntomas:snowcap-derive
Apr 26, 2026
Merged

Snowcap: Add derive macro for Signal and Universal#434
Ottatop merged 3 commits intopinnacle-comp:mainfrom
Ph4ntomas:snowcap-derive

Conversation

@Ph4ntomas
Copy link
Copy Markdown
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
@Ph4ntomas Ph4ntomas marked this pull request as ready for review April 6, 2026 13:40
Copy link
Copy Markdown
Collaborator

@Ottatop Ottatop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Ottatop Ottatop merged commit 822a537 into pinnacle-comp:main Apr 26, 2026
10 of 11 checks passed
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.

2 participants