This release adds support for various async APIs as defined in
embedded-hal-async. To use these features, you need to enable the
embedded-hal-async Cargo feature.
If you're upgrading from an earlier version, please note that the pin module
was renamed to digital to match embedded-hal.
Added
Add ToggleableOutputPin support for eh0::digital::Mock (#89)
Add StatefulOutputPin support for eh1::digital::Mock (#89)
This release contains a big change: embedded-hal-mock now supports both
embedded-hal 0.x and 1.x! The two variants are accessible through
embedded_hal_mock::eh0::* and embedded_hal_mock::eh1::*. If there are any
issues, leave feedback in the GitHub issue tracker.
Additionally, tests now fail if you forgot to call .done(). This should
reduce the chance of accidentally writing a broken test.
This release contains commits by 12 different people, thanks a lot for the
contributions!
Migrating to 0.10.0
Update your imports: Change use embedded_hal_mock::* to
use embedded_hal_mock::eh0::*
Rename all .expect(...) calls on mocks to .update_expectations(...)
Rename all eh0::delay::MockNoop usages to eh0::delay::NoopDelay
Run your tests to ensure that you don't have any missing .done() calls in
your code
Look through the rest of the changes below and check if they might affect
your code
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on embedded-hal-mock to permit the latest version.
Changelog
Sourced from embedded-hal-mock's changelog.
... (truncated)
Commits
93ceef8
Release v0.11.07ea451b
Merge pull request #89 from cdunster/feat/toggleable-output-pin2654fc4
Add StatefulOutputPin support for eh1::digital::Mock9024ffb
Add ToggleableOutputPin support for eh0::digital::Mock989059f
Implement embedded_hal_async::Wait for eh1::digital::Mock (#91)d1e353c
Merge pull request #120 from dbrgn/cleanup8627c77
Rename "buff" to "buf" everywhere for consistency8ddb4ff
spi: Simplify async testsc525cb3
i2c: Simplify async testsb8cf736
i2c: Remove outdated documentationDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show