Skip to content

Fixes #17 #18

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

Conversation

andrewgazelka
Copy link
Contributor

See #17 for more details

@andrewgazelka
Copy link
Contributor Author

I am closing, as it looks like most people are in favor of #19

bors bot added a commit that referenced this pull request Jan 21, 2022
19: Remove static {read,write} buffers r=eldruin a=andrewgazelka

- Fixes #17
- Fixes #10
- This is essentially a copy of #13 but with the documentation change requirements that were never made. Since the mentioned PR has been stale since March, I found it fair to make another PR.

I am potentially concerned regarding a use case for non-static buffers in the previous docs in the embedded-dma:
> The reason we don't require `'static` in the traits themselves is because it would block implementations that can deal with stack allocated buffers, like APIs that use closures to prevent memory corruption.

Can someone provide an example of an API that use closures to prevent memory corruption? If closures have a valid use case, #18 might be a better option.

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
Co-authored-by: Andrew Gazelka <andrew.gazelka@gmail.com>
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.

1 participant