Skip to content

Add proper no_std support#31

Draft
hey-ruffles wants to merge 2 commits intoAlexCharlton:masterfrom
hey-ruffles:master
Draft

Add proper no_std support#31
hey-ruffles wants to merge 2 commits intoAlexCharlton:masterfrom
hey-ruffles:master

Conversation

@hey-ruffles
Copy link

This adds support for reading/writing MIDI (at least the basic fixed size messages) with no_std and no alloc.

The idea is that all methods that used to write to Vec<u8> are now abstract over impl Write<Error = E>, which Vec implements naturally.
I also added optional defmt implementations for library types for debugging.

I used this code about 10 commits ago in a real embedded project and it worked perfectly.

Since then more message types were added and I rebased the patch with the help of Codex.
I fully reviewed it's changes on top of mine and they all are consistent. It only needed to fix a couple of newly added messages.

I'll deploy the changes in the embedded project and move the PR out of Draft status shortly.

@hey-ruffles
Copy link
Author

@AlexCharlton please take a look. Does the general direction look good?

@hey-ruffles hey-ruffles changed the title Add no_std support Add proper no_std support Feb 26, 2026
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