@@ -14,56 +14,37 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1414
1515### Changed
1616
17- - Updated ` embedded-hal ` to ` 1.0.0 ` .
18- - Changed the ` embedded-hal ` version 1 SPI implementation to be generic over
19- word size.
2017
21- ## 0.10.0-rc.4 - 2023-12-14
22-
23- ### Changed
24-
25- - Updated ` embedded-hal ` to ` 1.0.0-rc.3 ` .
26-
27-
28- ## 0.10.0-rc.3 - 2023-11-29
29-
30- ### Changed
31-
32- - Updated ` embedded-hal ` to ` 1.0.0-rc.2 ` .
33-
34-
35- ## 0.10.0-rc.2 - 2023-11-23
36-
37- ### Added
38-
39- - Implement mock for ` eh1::pwm::SetDutyCycle `
40-
41- ### Changed
42-
43- - Renamed ` .expect(...) ` method to ` .update_expectations(...) ` to avoid
44- confusion with the expect method in ` Option ` and ` Result ` (#63 )
45- - When updating expectations on a mock by calling ` .expect(...) ` /
46- ` .update_expectations(...) ` on it, assert that previous expectations have
47- been consumed (#63 )
48-
49-
50- ## 0.10.0-rc.1 - 2023-11-01
18+ ## 0.10.0 - 2024-01-10
5119
5220This release contains a big change: ` embedded-hal-mock ` now supports both
53- ` embedded-hal ` 0.x and 1.x (currently at version ` 1.0.0-rc.1 ` )! Please test it,
54- and if there are any issues, leave feedback in the GitHub issue tracker.
21+ ` embedded-hal ` 0.x and 1.x! The two variants are accessible through
22+ ` embedded_hal_mock::eh0::* ` and ` embedded_hal_mock::eh1::* ` . If there are any
23+ issues, leave feedback in the GitHub issue tracker.
5524
5625Additionally, tests now fail if you forgot to call ` .done() ` . This should
5726reduce the chance of accidentally writing a broken test.
5827
59- This release contains commits by 10 different people, thanks a lot for the
28+ This release contains commits by 12 different people, thanks a lot for the
6029contributions!
6130
31+ ### Migrating to 0.10.0
32+
33+ - Update your imports: Change ` use embedded_hal_mock::* ` to
34+ ` use embedded_hal_mock::eh0::* `
35+ - Rename all ` .expect(...) ` calls on mocks to ` .update_expectations(...) `
36+ - Rename all ` eh0::delay::MockNoop ` usages to ` eh0::delay::NoopDelay `
37+ - Run your tests to ensure that you don't have any missing ` .done() ` calls in
38+ your code
39+ - Look through the rest of the changes below and check if they might affect
40+ your code
41+
6242### Added
6343
6444- Support for both ` embedded-hal ` 0.x and 1.x in the same crate (#75 )
6545- Print a warning to stderr and fail test if a mock is dropped without having
6646 calling ` .done() ` on it, or if ` .done() ` is called twice (#59 , #61 )
47+ - Implement mock for ` eh1::pwm::SetDutyCycle `
6748
6849### Fixed
6950
@@ -74,8 +55,16 @@ contributions!
7455
7556### Changed
7657
58+ - Renamed ` .expect(...) ` method to ` .update_expectations(...) ` to avoid
59+ confusion with the expect method in ` Option ` and ` Result ` (#63 )
60+ - When updating expectations on a mock by calling ` .expect(...) ` /
61+ ` .update_expectations(...) ` on it, assert that previous expectations have
62+ been consumed (#63 )
7763- Rename ` delay::MockNoop ` to ` delay::NoopDelay ` .
78- - Bump minimal supported Rust version (MSRV) to 1.63
64+ - Changed the eh1 SPI implementation to be generic over word size
65+ - Updated ` nb ` dependency from 0.1 to 1.1 (#107 )
66+ - Bump minimal supported Rust version (MSRV) to 1.63 (or 1.75 if you use
67+ embedded-hal 1.0)
7968- The minimal supported Rust version (MSRV) is specified in the ` Cargo.toml ` to
8069 offer clearer error messages to consumers with outdated Rust versions
8170
0 commit comments