Skip to content

Copy conditional compilation flags onto created constructors#13

Merged
bytedream merged 1 commit intobytedream:mainfrom
nullstalgia:bugfix/conditional-compilation
Sep 2, 2025
Merged

Copy conditional compilation flags onto created constructors#13
bytedream merged 1 commit intobytedream:mainfrom
nullstalgia:bugfix/conditional-compilation

Conversation

@nullstalgia
Copy link
Contributor

Closes #12.

Howdy once more!

A few minutes ago while considering how to tackle an entirely unrelated problem with macros, I remembered that during my tests I conducted while writing #12, I was able to at least see each field's set of #[cfg] attributes. So I put together a simple test to see if just putting those on the constructor would be enough, and viola, I guess so! 😅

Copy link
Owner

@bytedream bytedream left a comment

Choose a reason for hiding this comment

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

That's quite nice, thank you!

@bytedream bytedream merged commit 8a863f3 into bytedream:main Sep 2, 2025
1 check 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.

Document limitation with Conditional Compilation

2 participants