Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Update rand to 0.7.0 #196

Closed

Conversation

timothyhollabaugh
Copy link

This updates the rand crate to the latest version 0.7.0.

I've been working on https://github.com/timothyhollabaugh/micromouse, which includes a cargo workspace with both a no_std bin crate for an stm32f4 (firmware) and a std bin crate (simulation) for running on a normal computer. One of the dependencies in simulation depends on rand 0.6.5, and firmware depends on cortex-m-rt-macros which depends on rand 0.5.5. However, due to issue 645 in the rand repo, having both these versions of rand with one being no_std and one std in the dependency tree causes compile errors. Hence the upgrade to 0.7.0.

Everything builds, and I have tested it with the uart isr in the above repo.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ithinuel (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@therealprof
Copy link
Contributor

therealprof commented Jul 23, 2019

Hi @timothyhollabaugh, there's already #195 which does the same thing. But there's a problem in rand...

@timothyhollabaugh
Copy link
Author

I probably should've looked at the PRs before diving in...

I can wait until #195 gets resolved. In the meantime, I suppose you can close this if you want.

bors bot added a commit that referenced this pull request Nov 24, 2019
205: Stop using randomized symbol names r=therealprof a=jonas-schievink

It isn't possible to do this by incrementing a global counter, since the expansion order of macros isn't guaranteed and might change between compiler invocations.

Fixes #212
Closes #196
Closes #195

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
@bors bors bot closed this in 7c8778f Nov 24, 2019
@bors bors bot closed this in #205 Nov 24, 2019
adamgreig pushed a commit to rust-embedded/cortex-m that referenced this pull request Jan 12, 2022
205: Stop using randomized symbol names r=therealprof a=jonas-schievink

It isn't possible to do this by incrementing a global counter, since the expansion order of macros isn't guaranteed and might change between compiler invocations.

Fixes #212
Closes rust-embedded/cortex-m-rt#196
Closes rust-embedded/cortex-m-rt#195

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants