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

Use maybe-async-cfg to add async support #16

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

nils-van-zuijlen
Copy link
Contributor

@nils-van-zuijlen nils-van-zuijlen commented Feb 1, 2024

Superseeds #14 , #13

Also, update to embedded-hal v1 so that there is only one trait for I2C on both sides.

Closes #15
Closes #11

Heavily inspired by eldruin/tcs3472-rs#5

I could not make the example in lib.rs compile, even when adding the embassy dependencies, because I cannot figure out how to enable a feature for a single doctest. So I did not include the embassy deps.

@nils-van-zuijlen nils-van-zuijlen force-pushed the maybe-async branch 3 times, most recently from d11b4a3 to 61ced96 Compare February 1, 2024 15:13
@coveralls
Copy link

coveralls commented Feb 1, 2024

Coverage Status

coverage: 83.883% (-6.6%) from 90.514%
when pulling bd2c01e on nils-van-zuijlen:maybe-async
into 6c46573 on eldruin:master.

Copy link
Owner

@eldruin eldruin left a comment

Choose a reason for hiding this comment

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

Awesome work, thank you!
I just added a couple of nitpicks.
Could you also update the MSRV in the README to 1.75.0?

Sorry, I had to do a couple of fixes due to clippy failing. Could you rebase this?

We can look into making the embassy example compile after merging this.
Maybe it is worth adding a whole example subfolder inside the examples folder with all the embassy stuff instead of adding them to the main crate.

NOTE TO SELF: Add rule to release.toml to update crate version in the README and in the lib.rs

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Owner

@eldruin eldruin left a comment

Choose a reason for hiding this comment

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

Great, thank you!

@eldruin eldruin merged commit 0715e71 into eldruin:master Feb 2, 2024
21 of 22 checks passed
@nils-van-zuijlen
Copy link
Contributor Author

Thank you for your help and guidance!

@eldruin
Copy link
Owner

eldruin commented Apr 5, 2024

I have published this in version 1.0. Thanks!

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.

Update to embedded-hal 1.0 Add async support
3 participants