Skip to content

Comments

Allow any kind of passthrough attributes on EnumDiscriminants#461

Merged
Peternator7 merged 1 commit intoPeternator7:masterfrom
clechasseur:feat/any-kind-of-passthroughs
Feb 5, 2026
Merged

Allow any kind of passthrough attributes on EnumDiscriminants#461
Peternator7 merged 1 commit intoPeternator7:masterfrom
clechasseur:feat/any-kind-of-passthroughs

Conversation

@clechasseur
Copy link
Contributor

This PR adds support for two new kinds of passthrough attributes on EnumDiscriminants:

  • Path only (ex: #[strum_discriminants(non_exhaustive)])
  • Name/value (ex: #[strum_discriminants(doc = "foo")])

This has been ported from clechasseur#15.

@Peternator7
Copy link
Owner

fixes #429

@Peternator7 Peternator7 merged commit 639b67f into Peternator7:master Feb 5, 2026
5 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