-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting reexporting enumflags2::bitflags macro #48
Comments
Wouldn't it be easier to use Cargo's support for workspace dependencies? |
Requires enumflags2 as a dependency. Can't reexport it since the bitflags macro is not hygienic (see meithecatte/enumflags2#48).
Requires enumflags2 as a dependency. Can't reexport it since the bitflags macro is not hygienic (see meithecatte/enumflags2#48).
Requires enumflags2 as a dependency. Can't reexport it since the bitflags macro is not hygienic (see meithecatte/enumflags2#48).
Requires enumflags2 as a dependency. Can't reexport it since the bitflags macro is not hygienic (see meithecatte/enumflags2#48).
@ozaner Just noticed your commits referencing this issue. I find your crate to be a compelling usecase for fixing this, though I don't think the solution currently being proposed would be any more convenient than what your README currently proposes. If you're aware of any way for a proc macro to hygienically refer to its "parent" crate, please let me know! |
Macro can not find enumflags2 crate if enumflags2 is reexported (pub use).
A lot of projects use one main crate to organize all crates that all crates in workspace may use.
If enumflags2 is used with this approach following errors are raised:
Other crates try to fix this by introducing additional macro attributes that defines how to access the crate in that context.
For example
strum
crate requires additional attribute:The text was updated successfully, but these errors were encountered: