rust-embedded-community / usb-device

Experimental device-side USB framework for microcontrollers in Rust.
MIT License
437 stars 75 forks source link

Refactoring language management for simplicity #130

Closed ryan-summers closed 10 months ago

ryan-summers commented 11 months ago

This PR builds on #122 by unifying strings under a single StringDescriptors structure to keep things organized a little differently. This eases usage on the end-user, as previously the borrowed slices had to be &'static borrows, which complicated the construction when i.e. a serial number was read from EEPROM or some other source.

ryan-summers commented 11 months ago

Additionally, I'd like to release after this lands - this was an issue I encountered while testing the new API for a 0.3 release