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

rand shouldn't depend on libc on no_std #927

Closed
Amanieu opened this issue Jan 8, 2020 · 1 comment · Fixed by #929
Closed

rand shouldn't depend on libc on no_std #927

Amanieu opened this issue Jan 8, 2020 · 1 comment · Fixed by #929

Comments

@Amanieu
Copy link
Contributor

Amanieu commented Jan 8, 2020

I am writing a no_std Linux application that runs without libc (using raw syscalls). Unfortunately the rand crate depends on libc for the ReseedingRng wrapper, which breaks my build.

As was discussed in #911, could the libc crate be changed into an optional dependency that only gets imported when the "std" feature is enabled?

@bjorn3
Copy link
Contributor

bjorn3 commented Jan 8, 2020

#928 has been merged.

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

Successfully merging a pull request may close this issue.

2 participants