features should not require users to manually include dependencies
Closed this issue · 1 comments
tamird commented
See the features section of the README.
I think the usual pattern for this is:
- create a "runtime" crate with optional dependencies on
log
andtrace
which are reexported. - add a dependency from
test-log
to "runtime".trace
andlog
features enable"runtime"/log
and"runtime"/trace
, respectively. - from
test-log
, refer tolog
andtrace
as"runtime"::log
and"runtime"::trace
, respectively.
This would produce a nicer user experience.
d-e-s-o commented
That sounds good to me. Feel free to open a pull request if you have time to work on it.