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

Remove RNG traits #291

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Remove RNG traits #291

merged 1 commit into from
Jul 9, 2021

Conversation

eldruin
Copy link
Member

@eldruin eldruin commented Jun 30, 2021

Duplicate of #270 adapted to the current status.
The documentation about what happened to the traits will go into the migration guide. See: #284.

Closes #270
Closes #128

@eldruin eldruin requested a review from a team as a code owner June 30, 2021 08:05
@rust-highfive
Copy link

r? @ryankurte

(rust-highfive has picked a reviewer for you, use r? to override)

@@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- `blocking::Serial`: renamed `bwrite_all` to `write`, `bflush` to `flush.
- Removed `prelude` to avoid method name conflicts between different flavors (blocking, nb) of the same trait. Traits must now be manually imported.

### Removed
- Removed random number generation (`rng`) traits in favor of [rand_core](https://crates.io/crates/rand_core).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably out of scope but (and plausible we already have one) but, it could be neat to have a using rand section in one of our books we could direct people to?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a good idea. We can then also add a reference to that in the migration guide.
I filed rust-embedded/rust-embedded.github.io#35

@eldruin
Copy link
Member Author

eldruin commented Jul 7, 2021

@ryankurte would you like to wait until the guide on how to implement the rand_core traits is available in the book or can we merge this beforehand?

Copy link
Contributor

@ryankurte ryankurte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't really mind either way, seems fine to me

@eldruin
Copy link
Member Author

eldruin commented Jul 9, 2021

Ok let's get this merged then.
bors r=ryankurte

@bors bors bot merged commit 113cb81 into rust-embedded:master Jul 9, 2021
@eldruin eldruin deleted the remove-rng branch July 9, 2021 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Review is incomplete T-hal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discussion] rand::RngCore for blocking RNG trait
3 participants