Replies: 1 comment
-
Yes, passing the crate name to the macro is an option, but that is not a solution I am interested in. Until Rust gains a proper solution for declaring runtime dependencies, you should suggest that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear maintainer,
Thank you for your work!
I have a re-export issue with
format_description!
. In my project,time
is only used by/through thesimplelog
crate. Hence, I expect not to have to add a dependency totime
in myCargo.toml
.Doing so, when I compile, I get this error:
This error does not occur when I do add the
time
dependency. I suppose that the problem originates in some way here,but macro are still a bit uncharted territory to me...
Apparently (live help on Discord), a way to fix this would be to pass the crate name in the definition of the macro in
time-macros
, and use the magic variable$crate
intime
before re-exporting. Not sure of the impact though...Do you have any comment, any suggestion, any fix?
It's not a blocking issue, but it's not a very nice behavior either.
Best
simplelog uses this macro here, re-exports there
Dependencies tree:
Minimum failing example:
Cargo.toml
:main.rs
:Beta Was this translation helpful? Give feedback.
All reactions