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

Update to heapless 7.0 #11

Open
diseraluca opened this issue May 20, 2021 · 0 comments
Open

Update to heapless 7.0 #11

diseraluca opened this issue May 20, 2021 · 0 comments

Comments

@diseraluca
Copy link
Owner

diseraluca commented May 20, 2021

This project uses heapless for its queue implementation. The currently pinned version is 6.0.

As a result of the stabilization of min_const_generics in rust 1.51, most crates that were depending on typenum are updating to const generic parameters.

For heapless, the 6.0 -> 7.0 update does so.

The crate already makes use of const generics, previously trough nightly, so that updating would further improve the consistency of the code.

The update should be mostly painless, but will require updates in many places, as almost every type in rx and tx makes use of generically bound heapless types.

The update path, at the minimum, will require:

  • The removal of any reference to heapless::consts.
  • The removal of any reference to a typenum-like type.
  • The update of each typenum-like generic parameter to a const generic usize parameter.
  • The update of the pinned heapless version in the manifest file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant