Skip to content

Conversation

@rustopian
Copy link
Contributor

Problem

We are increasingly using feature codama so that codama packages are only included when generating clients. The required syntax #[cfg_attr(feature = "codama", <ATTRIBUTE>)] is an acceptable consequence, but when decorating items with multiple attributes, it becomes unwieldy.

Solution

Support parsing of multiple attributes under one cfg_attr, i.e. #[cfg_attr(feature = "codama", <ATTRIBUTE_1>, <ATTRIBUTE_2>, <ATTRIBUTE_3> )]

@rustopian rustopian changed the title support multiple attributes under one feature flag support multiple attributes under one cfg_attr Dec 12, 2025
@rustopian rustopian marked this pull request as draft December 12, 2025 12:16
@rustopian rustopian marked this pull request as ready for review December 12, 2025 12:27
Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

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

Thank you!

@lorisleiva lorisleiva merged commit 9738067 into codama-idl:main Dec 12, 2025
2 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