Skip to content

uefi-raw: Add API guidelines #992

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 1 commit into from
Nov 8, 2023

Conversation

nicholasbishop
Copy link
Member

Some initial guildelines for the uefi-raw crate. Probably missing some stuff but hopefully this is a good start.

Checklist

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


## Pointers

Use pointers (`*const`/`*mut`) instead of references (`&`/`&mut`).
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to use some kind of marker which parameters are nullable, input parameters, and output parameters?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm open to the idea, but I'm not sure how to represent it in Rust in a way that would show up in rustdoc.

Copy link
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

LGTM! Just left some small remarks

@nicholasbishop nicholasbishop added this pull request to the merge queue Nov 8, 2023
Merged via the queue into rust-osdev:main with commit 09a7867 Nov 8, 2023
@nicholasbishop nicholasbishop deleted the bishop-api-guide branch November 15, 2023 14:56
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