Skip to content

Commit b6a7678

Browse files
authored
Merge pull request #485 from Dirbaio/rc1
Release embedded-hal{,-async,-nb} v1.0.0-rc.1, embedded-hal-bus v0.1.0-rc.1
2 parents 6cfdb7a + 575cee3 commit b6a7678

File tree

14 files changed

+73
-19
lines changed

14 files changed

+73
-19
lines changed

embedded-hal-async/CHANGELOG.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10-
### Added
11-
- spi: added `ExclusiveDevice::{bus, bus_mut}`.
10+
## [v1.0.0-rc.1] - 2023-08-15
11+
12+
- Updated `embedded-hal` to version `1.0.0-rc.1`.
13+
- Add optional `defmt` 0.3 support.
14+
- Remove serial traits, the replacement is the `embedded-io` crate.
15+
- Added `+ ?Sized` to all blanket impls.
16+
- Moved `ExclusiveDevice` to `embedded-hal-bus`.
1217

1318
## [v0.2.0-alpha.2] - 2023-07-04
1419

@@ -64,7 +69,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6469
First release to crates.io
6570

6671

67-
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-async-v0.2.0-alpha.2...HEAD
72+
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-async-v1.0.0-rc.1...HEAD
73+
[v1.0.0-rc.1]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-async-v0.2.0-alpha.2...embedded-hal-async-v1.0.0-rc.1
6874
[v0.2.0-alpha.2]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-async-v0.2.0-alpha.1...embedded-hal-async-v0.2.0-alpha.2
6975
[v0.2.0-alpha.1]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-async-v0.2.0-alpha.0...embedded-hal-async-v0.2.0-alpha.1
7076
[v0.2.0-alpha.0]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-async-v0.1.0-alpha.3...embedded-hal-async-v0.2.0-alpha.0

embedded-hal-async/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ license = "MIT OR Apache-2.0"
1111
name = "embedded-hal-async"
1212
readme = "README.md"
1313
repository = "https://github.com/rust-embedded/embedded-hal"
14-
version = "0.2.0-alpha.2"
14+
version = "1.0.0-rc.1"
1515
rust-version = "1.65.0"
1616

1717
[features]
1818
defmt-03 = ["dep:defmt-03", "embedded-hal/defmt-03"]
1919

2020
[dependencies]
21-
embedded-hal = { version = "=1.0.0-alpha.11", path = "../embedded-hal" }
21+
embedded-hal = { version = "=1.0.0-rc.1", path = "../embedded-hal" }
2222
defmt-03 = { package = "defmt", version = "0.3", optional = true }

embedded-hal-async/README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,21 @@ A serial port is essentially a byte-oriented stream, and that's what `embedded-i
1717
with all byte streams has some advantages. For example, it allows generic code providing a command-line interface
1818
or a console to operate either on hardware serial ports or on virtual ones like Telnet or USB CDC-ACM.
1919

20+
## Optional Cargo features
21+
22+
- **`defmt-03`**: Derive `defmt::Format` from `defmt` 0.3 for enums and structs.
23+
2024
## Minimum Supported Rust Version (MSRV)
2125

2226
This crate requires Rust nightly newer than `nightly-2022-11-22`, due to requiring support for
23-
`async fn` in traits (AFIT), which is not stable yet.
27+
`async fn` in traits (AFIT), which is not stable yet.
2428

2529
Keep in mind Rust nightlies can make backwards-incompatible changes to unstable features
26-
at any time.
30+
at any time. If this happens, we might do changes that increase the minimum required nightly
31+
version in any patch release.
32+
33+
When AFIT becomes stable, MSRV will be bumped to the Rust version that stabilizes it, after which
34+
point the [standard MSRV bump policy](../docs/msrv.md) will apply.
2735

2836
## License
2937

embedded-hal-bus/CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.1.0-rc.1] - 2023-08-15
11+
12+
- Updated `embedded-hal`, `embedded-hal-async` to version `1.0.0-rc.1`.
13+
- The Minimum Supported Rust Version (MSRV) is now 1.60.0
14+
- Added `embedded-hal-async` support to SPI `ExclusiveDevice`.
15+
- Added methods to access the inner bus to SPI `ExclusiveDevice`.
16+
- Add optional `defmt` 0.3 support.
17+
1018
## [v0.1.0-alpha.3] - 2023-07-04
1119

1220
### Changed
@@ -31,7 +39,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3139

3240
First release to crates.io
3341

34-
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-alpha.3...HEAD
42+
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-rc.1...HEAD
43+
[v0.1.0-rc.1]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-alpha.3...embedded-hal-bus-v0.1.0-rc.1
3544
[v0.1.0-alpha.3]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-alpha.2...embedded-hal-bus-v0.1.0-alpha.3
3645
[v0.1.0-alpha.2]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-alpha.1...embedded-hal-bus-v0.1.0-alpha.2
3746
[v0.1.0-alpha.1]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-alpha.0...embedded-hal-bus-v0.1.0-alpha.1

embedded-hal-bus/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ license = "MIT OR Apache-2.0"
1111
name = "embedded-hal-bus"
1212
readme = "README.md"
1313
repository = "https://github.com/rust-embedded/embedded-hal"
14-
version = "0.1.0-alpha.3"
14+
version = "0.1.0-rc.1"
1515

1616
[features]
1717
std = []
1818
async = ["dep:embedded-hal-async"]
1919
defmt-03 = ["dep:defmt-03", "embedded-hal/defmt-03", "embedded-hal-async?/defmt-03"]
2020

2121
[dependencies]
22-
embedded-hal = { version = "=1.0.0-alpha.11", path = "../embedded-hal" }
23-
embedded-hal-async = { version = "=0.2.0-alpha.2", path = "../embedded-hal-async", optional = true }
22+
embedded-hal = { version = "=1.0.0-rc.1", path = "../embedded-hal" }
23+
embedded-hal-async = { version = "=1.0.0-rc.1", path = "../embedded-hal-async", optional = true }
2424
critical-section = { version = "1.0" }
2525
defmt-03 = { package = "defmt", version = "0.3", optional = true }
2626

embedded-hal-bus/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ This crate provides mechanisms to connect a `SpiBus` and a `SpiDevice`.
2828
In the case of I2C, the same `I2c` `embedded-hal` trait represents either an entire bus, or a device on a bus. This crate
2929
provides mechanisms to obtain multiple `I2c` instances out of a single `I2c` instance, sharing the bus.
3030

31-
## Features
31+
## Optional Cargo features
3232

33-
- `std`: enable shared bus implementations using `std::sync::Mutex`.
33+
- **`std`**: enable shared bus implementations using `std::sync::Mutex`.
34+
- **`async`**: enable `embedded-hal-async` support.
35+
- **`defmt-03`**: Derive `defmt::Format` from `defmt` 0.3 for enums and structs.
3436

3537
## Minimum Supported Rust Version (MSRV)
3638

embedded-hal-nb/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
...
1111

12+
## [v1.0.0-rc.1] - 2023-08-15
13+
14+
- Updated `embedded-hal` to version `1.0.0-rc.1`.
15+
- Added `+ ?Sized` to all blanket impls.
16+
1217
## [v1.0.0-alpha.3] - 2023-07-04
1318

1419
### Changed

embedded-hal-nb/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "embedded-hal-nb"
3-
version = "1.0.0-alpha.3"
3+
version = "1.0.0-rc.1"
44
edition = "2021"
55

66
categories = ["embedded", "hardware-support", "no-std"]
@@ -12,7 +12,7 @@ readme = "README.md"
1212
repository = "https://github.com/rust-embedded/embedded-hal"
1313

1414
[dependencies]
15-
embedded-hal = { version = "=1.0.0-alpha.11", path = "../embedded-hal" }
15+
embedded-hal = { version = "=1.0.0-rc.1", path = "../embedded-hal" }
1616
nb = "1"
1717

1818
[dev-dependencies]

embedded-hal/CHANGELOG.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v1.0.0-rc.1] - 2023-08-15
11+
12+
- The Minimum Supported Rust Version (MSRV) is now 1.60.0
13+
- Add optional `defmt` 0.3 support.
14+
- Remove serial traits, the replacement is the `embedded-io` crate.
15+
- Added `+ ?Sized` to all blanket impls.
1016

1117
## [v1.0.0-alpha.11] - 2023-07-04
1218

@@ -65,7 +71,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6571
*** This is (also) an alpha release with breaking changes (sorry) ***
6672

6773
### Changed
68-
- The Minimum Supported Rust Version (MSRV) is now 1.60.0
74+
- The Minimum Supported Rust Version (MSRV) is now 1.59.0
6975
- `spi`: unify all traits into `SpiReadBus`, `SpiWriteBus` and `SpiBus` (read-write).
7076
- `spi`: Add `SpiDevice` trait to represent a single device in a (possibly shared) bus, with managed chip-select (CS) pin.
7177
- `spi`: Clarify that implementations are allowed to return before operations are finished, add `flush` to wait until finished.
@@ -291,7 +297,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
291297

292298
Initial release
293299

294-
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/v1.0.0-alpha.11...HEAD
300+
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/v1.0.0-rc.1...HEAD
301+
[v1.0.0-rc.1]: https://github.com/rust-embedded/embedded-hal/compare/v1.0.0-alpha.11...v1.0.0-rc.1
295302
[v1.0.0-alpha.11]: https://github.com/rust-embedded/embedded-hal/compare/v1.0.0-alpha.10...v1.0.0-alpha.11
296303
[v1.0.0-alpha.10]: https://github.com/rust-embedded/embedded-hal/compare/v1.0.0-alpha.9...v1.0.0-alpha.10
297304
[v1.0.0-alpha.9]: https://github.com/rust-embedded/embedded-hal/compare/v1.0.0-alpha.8...v1.0.0-alpha.9

embedded-hal/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ license = "MIT OR Apache-2.0"
1313
name = "embedded-hal"
1414
readme = "README.md"
1515
repository = "https://github.com/rust-embedded/embedded-hal"
16-
version = "1.0.0-alpha.11"
16+
version = "1.0.0-rc.1"
1717

1818
[dependencies]
19-
defmt-03 = { package = "defmt", version = "0.3", optional = true }
19+
defmt-03 = { package = "defmt", version = "0.3", optional = true }

embedded-hal/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ A serial port is essentially a byte-oriented stream, and that's what `embedded-i
8484
with all byte streams has some advantages. For example, it allows generic code providing a command-line interface
8585
or a console to operate either on hardware serial ports or on virtual ones like Telnet or USB CDC-ACM.
8686

87+
## Optional Cargo features
88+
89+
- **`defmt-03`**: Derive `defmt::Format` from `defmt` 0.3 for enums and structs.
90+
8791
## Minimum Supported Rust Version (MSRV)
8892

8993
This crate is guaranteed to compile on stable Rust 1.60 and up. It *might*

embedded-io-async/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ This crate contains asynchronous versions of the [`embedded-io`](https://crates.
1010

1111
This project is developed and maintained by the [HAL team](https://github.com/rust-embedded/wg#the-hal-team).
1212

13+
## Optional Cargo features
14+
15+
- **`std`**: Adds `From` impls to convert to/from `std::io` structs, adds `std::error::Error` impls.
16+
- **`alloc`**: Adds blanket impls for `Box`, adds `Write` impl to `Vec`.
17+
- **`defmt-03`**: Derive `defmt::Format` from `defmt` 0.3 for enums and structs.
18+
1319
## Minimum Supported Rust Version (MSRV)
1420

1521
This crate requires Rust nightly newer than `nightly-2022-11-22`, due to requiring support for

embedded-io/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Split trait adapters to the `embedded-io-adapters` crate.
1616
- Add `std::error` impls for `ReadExactError` & `WriteAllError`.
1717
- Rename trait `Io` to `ErrorKind`, for consistency with `embedded-hal`.
18+
- Added optional `defmt` 0.3 support.
1819

1920
## 0.4.0 - 2022-11-25
2021

embedded-io/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ while avoiding `dyn` or `Box`. This is consistent with how errors are handled in
1919
- In `std::io`, the `Read`/`Write` traits might be blocking or non-blocking (i.e. returning `WouldBlock` errors) depending on the file descriptor's mode, which is only known at run-time. This allows passing a non-blocking stream to code that expects a blocking
2020
stream, causing unexpected errors. To solve this, `embedded-io` specifies `Read`/`Write` are always blocking, and adds new `ReadReady`/`WriteReady` traits to allow using streams in a non-blocking way.
2121

22+
## Optional Cargo features
23+
24+
- **`std`**: Adds `From` impls to convert to/from `std::io` structs, adds `std::error::Error` impls.
25+
- **`alloc`**: Adds blanket impls for `Box`, adds `Write` impl to `Vec`.
26+
- **`defmt-03`**: Derive `defmt::Format` from `defmt` 0.3 for enums and structs.
27+
2228
## Minimum Supported Rust Version (MSRV)
2329

2430
This crate is guaranteed to compile on stable Rust 1.60 and up. It *might*

0 commit comments

Comments
 (0)