Skip to content

Add RngProtocol to uefi-raw and use it from uefi #778

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

Merged
merged 3 commits into from
Apr 29, 2023

Conversation

nicholasbishop
Copy link
Member

A couple naming notes:

  • For uefi-raw, I went with a more explicit protocol module name rather than proto.
  • Similarly, instead of naming the protocol Rng I named it RngProtocol. Unlike in the uefi crate, it doesn't implement a Protocol trait, so I think it makes sense to give it a longer name clearly indicating what it is.

Should be no change to the public API of uefi from this, all internal changes.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

This is the first protocol interface added to uefi-raw, chosen because it's
pretty simple.

A couple naming notes:
* For uefi-raw, I went with a more explicit `protocol` module name rather than
  `proto`.
* Similarly, instead of naming the protocol `Rng` I named it
  `RngProtocol`. Unlike in the uefi crate, it doesn't implement a `Protocol`
  trait, so I think it makes sense to give it a longer name clearly indicating
  what it is.
This replaces much of the `Rng` implementation with stuff from uefi-raw.
@phip1611 phip1611 merged commit e84e76f into rust-osdev:main Apr 29, 2023
@phip1611
Copy link
Member

Very nice. I like the new uefi-raw crate :)

@nicholasbishop nicholasbishop deleted the bishop-raw-first-proto branch April 29, 2023 20:03
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 this pull request may close these issues.

2 participants