-
Notifications
You must be signed in to change notification settings - Fork 229
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
Switch to embedded-hal 1.0.0 #77
Comments
For reference, some other HALs have gone the route of supporting both the release and alpha versions of If done carefully, I could see this bringing nice benefits. We could have the HAL API look nice because of the alpha traits but still keep compatibility with 'old' drivers through the release version. |
@Rahix, what's the status on this? I've written a little lcd 16x2 library and I'd like to publish it, but it relies on avr-hal which isn't on crates.io. EDIT: nevermind- avr-hal-generic has embedded-hal traits for pins. |
For what it is worth, merge request #621 is titled "[arduino-hal] remove embedded-hal-v0 dependency". |
Not sure when is a good time to do this but it would be great to be an early adopter of the new traits :) They bring a lot of improvements to ergnomics and usability which would help the readability of downstream code a lot.
We do, however, have to consider that most drivers won't have updated yet so we have to be careful as to not become 100% incompatible. Maybe there is a possibility for a compat-shim layer or a cargo-feature to allow using the older version in parallel?
The text was updated successfully, but these errors were encountered: