Skip to content

Latest commit

 

History

History
153 lines (81 loc) · 2.89 KB

CHANGELOG.md

File metadata and controls

153 lines (81 loc) · 2.89 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased

Added

  • 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)

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)

Changed

  • The minimal supported Rust version (MSRV) is specified in the Cargo.toml to offer clearer error messages to consumers with outdated Rust versions

0.9.0 - 2023-01-07

Added

  • Implement WriteIter and WriteIterRead for i2c mock (#44)
  • Implement PwmPin for pin mock (#52)
  • Add mock for timers using embedded-time with nanosecond precision (#40)

Changed

  • Bump minimal supported Rust version (MSRV) to 1.60
  • Switch to Rust 2021 edition (#55)
  • Switch from CircleCI to GitHub Actions (#50)

0.8.0 - 2021-08-16

Added

  • Add one-shot ADC mock (#38)

0.7.2 - 2020-06-02

Added

  • Implement std::Error trait for MockError (#31)
  • serial: Implement error expectations (#32)

0.7.1 - 2020-01-03

Added

  • i2c: Implement error expectations (#29)

Fixed

  • Fix link to digital pin docs (#28)

0.7.0 - 2019-05-22

Added

  • The serial transaction API now has two new constructor methods: read_many and write_many.

Changed

  • The serial transaction API changed: The 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.

Fixed

  • Make the serial mock actually cloneable

0.6.0 - 2019-05-10

Added

  • Add serial device mock (#21)
  • Add InputPin and OutputPin mocks (#18)

Changed

  • MockError::Io now wraps an io::ErrorKind instance instead of io::Error.

0.5.0 - 2019-01-07

Added

  • SPI: Add support for non-blocking FullDuplex mode (#14)

Changed

  • Require Rust 1.31+
  • Apply and enforce rustfmt

0.4.1 - 2018-12-26

Added

  • Add StdSleep delay implementation based on std::thread::sleep (#8)
  • Add new() methods to MockNoop and StdSleep

Fixed

  • Fix error messages for unfulfilled I²C expectations (#12)

0.4.0 - 2018-10-22

Changed

  • I²C mock has a new transaction based API, matching the SPI mock (#4)

0.3.0 - 2018-10-12

Added

  • SPI mock implementation (#2)
  • Set up CI (#3)

Changed

  • Restructure crate:
    • I2cMock is now at i2c::Mock
    • DelayMockNoop is now at delay::MockNoop
  • Move all docs into crate docs (so it can be tested)

0.2.0 - 2018-06-18

Changed

  • Upgrade to embedded-hal 0.2.

0.1.0 - 2018-03-31

Initial release on crates.io.