Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embassy-rp: update the rand_core version ? #3921

Open
ValouBambou opened this issue Feb 25, 2025 · 0 comments
Open

embassy-rp: update the rand_core version ? #3921

ValouBambou opened this issue Feb 25, 2025 · 0 comments

Comments

@ValouBambou
Copy link
Contributor

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

pub async fn init<RNG:rand_core::RngCore>(rng: &mut RNG) -> Self;

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant