Skip to content
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 num_enum from a reexport use #139

Closed
diondokter opened this issue Dec 13, 2023 · 1 comment
Closed

Can't use num_enum from a reexport use #139

diondokter opened this issue Dec 13, 2023 · 1 comment

Comments

@diondokter
Copy link

I've created a macro that uses num_enum derives on generated enums.
The derive is done with #[derive(macro_crate::enum_enum::TryFromPrimitive)]. My hope was that this would just work for the user, but this gives a compile error:

could not find 'num_enum' in the list of imported crates

It does suggest adding a use macro_crate::enum_enum; but that doesn't solve anything.

Would be nice if support for this usecase could be added.

@diondokter
Copy link
Author

Oh oops, I guess this is the same as #76. Didn't see that! Closing this in favour of that.

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

No branches or pull requests

1 participant