Cannot use Enum derive if enum-map is re-exported

Hi, I am currently using enum-map as an implementation detail in my crate. I would like to use it as part of a macro for easily generating enums. The macro performs a derive from enum_map::Enum.

I want to make it so that users of my crate don't need to manually include the enum-map crate. The derive macro however is hardcoded to look for enum-map, so it doesn't work if I re-export the crate:

error[E0433]: failed to resolve: could not find `enum_map` in the list of imported crates

This was recently made to work in strum:

https://github.com/Peternator7/strum/pull/170

I'd appreciate seeing a similar feature in enum-map. Thanks!

Edited by Cosmic Chip Socket
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information