I have a macro that is exported by my crate and used by other crates. It needs certain items to be imported. However, we run into the following problem:
- If the macro itself doesn’t import the items, we need to put the onus on the user to have these items already imported
- If the macro imports the items itself, then if the user has already imported the same items, we get an error about the re-importing of an already-imported item
Is there a good way around this problem? To make it concrete, the macro in question is this one.