You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was writing a "generic" driver that I could reuse with multiple MCUs. This driver requires some random number generator for its initialization. The init function looks roughly like this
When I tried to use it with RoscRng I got some compiler error about DerefMut and a note that helps me to figure out that the issue was 2 different versions of rand_core (0.9.2 in my driver lib and 0.6.4 used in embassy-rp).
This is fine I can pin the rand_core version to match the one in embassy-rp, but this isn't really generic and can also prevent the use of the driver lib for users using newer versions of rand_core.
Does embassy need this particular version of rand_core and not a newer one?
Can we update this dependency?
In general, does it exist a solution for such dependency issue for an external library like mine?
The text was updated successfully, but these errors were encountered:
Hi, I was writing a "generic" driver that I could reuse with multiple MCUs. This driver requires some random number generator for its initialization. The init function looks roughly like this
When I tried to use it with
RoscRng
I got some compiler error aboutDerefMut
and a note that helps me to figure out that the issue was 2 different versions of rand_core (0.9.2 in my driver lib and 0.6.4 used in embassy-rp).This is fine I can pin the rand_core version to match the one in embassy-rp, but this isn't really generic and can also prevent the use of the driver lib for users using newer versions of rand_core.
Does embassy need this particular version of rand_core and not a newer one?
Can we update this dependency?
In general, does it exist a solution for such dependency issue for an external library like mine?
The text was updated successfully, but these errors were encountered: