-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Can't use derive macros when bytemuck is re-exported from another crate. #159
Comments
Using the If an alternative prefix is desired to be supported we'd have to expand the derive to accept a dummy attribute letting you specify the prefix, or something like that. In general, proc-macros just aren't the best with re-exports. |
I've been running into this issue also 👍 Trying to reduce the number of duplicated dependencies in a project becomes much harder if |
I need this in order to use I have a branch of Example usage:
FWIW, as @Lokathor pointed out, this is a general issue with derive macros. I wonder if there already is a pattern recognized by the Rust community that we could follow here. |
This is solved for |
PR here Can this issue be closed though? Or should it stay open until the other macros can do the same thing? In the above PR (at least at the time of writing), I added the Not sure if that's desired or not. |
@Lokathor, any chance we could get a patch release of |
|
Released |
This is probably because bytemuck's proc macro crate uses
::bytemuck::*
instead ofbytemuck::*
here.The text was updated successfully, but these errors were encountered: