You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Oliboy50
changed the title
Support conditionally compiled attributes (using #[cfg(...)]) without the derive macro
Conditionally compiled attributes (using #[cfg(...)]) without derive macro
Feb 16, 2024
Oliboy50
changed the title
Conditionally compiled attributes (using #[cfg(...)]) without derive macro
Support conditionally compiled attributes (using #[cfg(...)])
Feb 16, 2024
In theory possible.
At some point I need to get around to updating this crate to use syn2. This will remove a ton of code. But it's probably not on my immediate list of things to do.
Would it be possible to support feature flipped attributes in the builder arguments such as:
Right now, I'm sad that this does not compile.
Whereas, if I remove the
#[buildstructor::buildstructor]
and#[builder]
attributes, this compile fine.You can test it yourself here: https://www.rustexplorer.com/b/ph7z4h
Do you think that it would be possible for the buildstructor proc macro to support this?
Note: It seems to work fine using the
#[derive(Builder)]
macro: https://www.rustexplorer.com/b/4yi2tr (but I don't use it myself).The text was updated successfully, but these errors were encountered: