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

Update embedded-hal-mock requirement from 0.9.0 to 0.10.0 #15

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 15, 2024

Updates the requirements on embedded-hal-mock to permit the latest version.

Changelog

Sourced from embedded-hal-mock's changelog.

0.10.0 - 2024-01-10

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

Added

  • Support for both embedded-hal 0.x and 1.x in the same crate (#75)
  • Print a warning to stderr and fail test if a mock is dropped without having calling .done() on it, or if .done() is called twice (#59, #61)
  • Implement mock for eh1::pwm::SetDutyCycle

Fixed

  • Generic mock: Fix a bug that caused the call to .done() to fail if .next() was called on the mock after all expectations have already been consumed (#58)
  • Fix assertion error message for SPI transfer and transfer_in_place (#90)

Changed

  • Renamed .expect(...) method to .update_expectations(...) to avoid confusion with the expect method in Option and Result (#63)
  • When updating expectations on a mock by calling .expect(...) / .update_expectations(...) on it, assert that previous expectations have been consumed (#63)
  • Rename delay::MockNoop to delay::NoopDelay.
  • Changed the eh1 SPI implementation to be generic over word size
  • Updated nb dependency from 0.1 to 1.1 (#107)
  • Bump minimal supported Rust version (MSRV) to 1.63 (or 1.75 if you use embedded-hal 1.0)

... (truncated)

Commits
  • 3ac0ada Release v0.10.0 (#111)
  • 53f7d86 Merge pull request #109 from dbrgn/rustfmt
  • 41ef56b Reformat documentation examples
  • 34b78bc Rustfmt: Add unstable "group_imports" option
  • d67a0ae Rustfmt: Add unstable "imports_granularity" option
  • 0351e5b Remove redundant .rustfmt.toml
  • 0cc188e Use semver in e-h docs.rs links (#110)
  • 4fdae97 update to nb 1.1
  • 4f2c36c Add VS Code & JetBrains IDEA (RustRover, CLion, etc.) to .gitignore (#108)
  • 8248390 CI: test against rustc 1.75 instead of nightly (#106)
  • Additional commits viewable in compare view

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 <dependency name> 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](https://github.com/dbrgn/embedded-hal-mock) to permit the latest version.
- [Changelog](https://github.com/dbrgn/embedded-hal-mock/blob/main/CHANGELOG.md)
- [Commits](dbrgn/embedded-hal-mock@v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: embedded-hal-mock
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jan 15, 2024
@Rahix Rahix closed this Jan 24, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 24, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/cargo/embedded-hal-mock-0.10.0 branch January 24, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant