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

async: Do not use heapless on public API. #93

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

Dirbaio
Copy link
Contributor

@Dirbaio Dirbaio commented Nov 8, 2023

It's better to not use heapless on the public API.

  • It can get major bumps from time to time (for example v0.8 was just relased), and upgrading it is a breaking change of embedded-nal-async, which we should try to avoid.
  • It allows users to use any version of heapless, or something else entirely.

Copy link
Contributor

@lulf lulf left a comment

Choose a reason for hiding this comment

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

Fully agreed! This bothered me with the existing blocking api, should that be changed too?

@ryan-summers
Copy link
Member

Would you be willing to copy these over to the non-async version as well? I agree with the sentiment here, and we have the same problem over there.

@Dirbaio
Copy link
Contributor Author

Dirbaio commented Nov 8, 2023

@ryan-summers done

also note I've separated the MSRV bump to #94, review that first.

It's better to not use heapless on the public API.

- It can get major bumps from time to time (for example v0.8 was just relased), and upgrading it is a breaking change of embedded-nal-async, which we should try to avoid.
- It allows users to use any version of heapless, or something else entirely.
Copy link
Member

@ryan-summers ryan-summers left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@ryan-summers ryan-summers merged commit 65ba5a3 into rust-embedded-community:master Nov 9, 2023
12 checks passed
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.

4 participants