-
Notifications
You must be signed in to change notification settings - Fork 248
Add optional support for extern_item_impls
#786
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
+140
−11
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
557c77a
Add optional support for extern_item_impls
bushrat011899 3db99c1
Formatting and Typos
bushrat011899 8b445e8
Prevent feature-gate breaking rustdoc
bushrat011899 5688a01
Prevent feature-gate breaking rustdoc
bushrat011899 c04e035
Merge branch 'nightly_eii' of https://github.com/bushrat011899/getran…
bushrat011899 c0cd373
Refactor EII as a self-contained backend
bushrat011899 3a2c4a0
Merge remote-tracking branch 'upstream/master' into nightly_eii
bushrat011899 d09a652
Update README.md
bushrat011899 d6f5ea7
Remove redundant cfg_attr
bushrat011899 37a1ab8
Move implementation docs
bushrat011899 d20f31b
Add CI test for extern_item_impls
bushrat011899 bf2e691
Ensure EII test runs on Nightly
bushrat011899 4d5f818
Clippy
bushrat011899 ac60510
Remove redundant CI test
bushrat011899 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| //! An implementation which calls out to an externally defined function. | ||
| use crate::Error; | ||
| use core::mem::MaybeUninit; | ||
|
|
||
| /// Declares this function as an external implementation of [`fill_uninit`](crate::fill_uninit). | ||
| #[cfg_attr(getrandom_backend = "extern_item_impls", eii(fill_uninit))] | ||
| pub(crate) fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error>; | ||
|
|
||
| /// Declares this function as an external implementation of [`u32`](crate::u32). | ||
| #[cfg_attr(getrandom_backend = "extern_item_impls", eii(u32))] | ||
| pub(crate) fn inner_u32() -> Result<u32, crate::Error> { | ||
| crate::util::inner_u32() | ||
| } | ||
|
|
||
| /// Declares this function as an external implementation of [`u64`](crate::u64). | ||
| #[cfg_attr(getrandom_backend = "extern_item_impls", eii(u64))] | ||
| pub(crate) fn inner_u64() -> Result<u64, crate::Error> { | ||
| crate::util::inner_u64() | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.