NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #4547 most downloaded on crates.io
A collection of mocked devices that implement the embedded-hal traits
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.4 years
Nearly every release is documented
notes for 15 of 15 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
19 releases · first in 2018
This release only includes a documentation fix (with regards to default-enabled Cargo features), but no code changes.
This release only includes a documentation fix (with regards to default-enabled Cargo features), but no code changes.
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 Ca
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.
ToggleableOutputPin support for eh0::digital::Mock (#89)StatefulOutputPin support for eh1::digital::Mock (#89)eh1::i2c::Mock (#119)eh1::digital::Mock (#91)NoopDelay / StdSleep (#104)CheckedDelay mock that supports both sync and async delays (#104)pin module to digital to match embedded-hal (#113)One column per quarter.
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
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!
use embedded_hal_mock::* to
use embedded_hal_mock::eh0::*.expect(...) calls on mocks to .update_expectations(...)eh0::delay::MockNoop usages to eh0::delay::NoopDelay.done() calls in
your codeembedded-hal 0.x and 1.x in the same crate (#75).done() on it, or if .done() is called twice (#59, #61)eh1::pwm::SetDutyCycleGeneric 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)transfer and transfer_in_place (#90).expect(...) method to .update_expectations(...) to avoid
confusion with the expect method in Option and Result (#63).expect(...) /
.update_expectations(...) on it, assert that previous expectations have
been consumed (#63)delay::MockNoop to delay::NoopDelay.nb dependency from 0.1 to 1.1 (#107)Cargo.toml to
offer clearer error messages to consumers with outdated Rust versionsNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Implement WriteIter and WriteIterRead for i2c mock
WriteIter and WriteIterRead for i2c mock (#44)PwmPin for pin mock (#52)### Added - Add one-shot ADC mock
Implement std::Error trait for MockError
std::Error trait for MockError (#31)i2c: Implement error expectations
The serial transaction API now has two new constructor methods: read_many and write_many.
read_many
and write_many.Transaction::write function now
expects a single word, not a collection of words. To add a transaction for
many writes, use Transaction::write_many instead.Add InputPin and OutputPin mocks
MockError::Io now wraps an io::ErrorKind instance instead of io::Error.SPI: Add support for non-blocking FullDuplex mode
FullDuplex mode (#14)Add StdSleep delay implementation based on std::sleep
StdSleep delay implementation based on std::thread::sleep (#8)new() methods to MockNoop and StdSleepI²C mock has a new transaction based API, matching the SPI mock
DelayMockNoop is now at delay::MockNoop
I2cMock is now at i2c::MockDelayMockNoop is now at delay::MockNoop### Changed - Upgrade to embedded-hal 0.2.
embedded-hal 0.2.Initial release on crates.io.
Initial release on crates.io.
Your coding agent can read these notes before it upgrades. Set up the MCP server →