Skip to content

Commit 8e66252

Browse files
authored
Merge pull request #511 from Dirbaio/release-eio-06
Release embedded-io{,-async,-adapters} v0.6.0
2 parents eab3759 + a4dcba4 commit 8e66252

File tree

10 files changed

+52
-11
lines changed

10 files changed

+52
-11
lines changed

embedded-hal-async/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#![doc = include_str!("../README.md")]
22
#![warn(missing_docs)]
33
#![no_std]
4+
// disable warning for already-stabilized features.
5+
// Needed to pass CI, because we deny warnings.
6+
// We don't immediately remove them to not immediately break older nightlies.
7+
// When all features are stable, we'll remove them.
8+
#![allow(stable_features)]
49
#![feature(async_fn_in_trait, impl_trait_projections)]
510

611
pub mod delay;

embedded-hal-bus/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#![warn(missing_docs)]
33
#![cfg_attr(not(feature = "std"), no_std)]
44
#![cfg_attr(docsrs, feature(doc_cfg))]
5+
// disable warning for already-stabilized features.
6+
// Needed to pass CI, because we deny warnings.
7+
// We don't immediately remove them to not immediately break older nightlies.
8+
// When all features are stable, we'll remove them.
9+
#![cfg_attr(feature = "async", allow(stable_features))]
510
#![cfg_attr(feature = "async", feature(async_fn_in_trait, impl_trait_projections))]
611

712
// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.

embedded-io-adapters/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
Add unreleased changes here
11+
12+
## 0.6.0 - 2023-10-02
13+
1014
- Add support for adapting `BufRead` from `futures` and `tokio`.
1115
- Return an error when a wrapped `std`/`futures`/`tokio` `write()` call returns
1216
`Ok(0)` to comply with `embedded_io::Write` requirements.

embedded-io-adapters/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "embedded-io-adapters"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
description = "Adapters between the `embedded-io` traits and other I/O traits"
66
repository = "https://github.com/rust-embedded/embedded-hal"
@@ -17,8 +17,8 @@ tokio-1 = ["std", "dep:tokio", "dep:embedded-io-async", "embedded-io-async?/std"
1717
futures-03 = ["std", "dep:futures", "dep:embedded-io-async", "embedded-io-async?/std"]
1818

1919
[dependencies]
20-
embedded-io = { version = "0.5", path = "../embedded-io" }
21-
embedded-io-async = { version = "0.5", path = "../embedded-io-async", optional = true }
20+
embedded-io = { version = "0.6", path = "../embedded-io" }
21+
embedded-io-async = { version = "0.6", path = "../embedded-io-async", optional = true }
2222

2323
futures = { version = "0.3.21", features = ["std"], default-features = false, optional = true }
2424
tokio = { version = "1", features = ["io-util"], default-features = false, optional = true }

embedded-io-adapters/src/lib.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
22
#![cfg_attr(docsrs, feature(doc_cfg))]
3+
#![warn(missing_docs)]
4+
#![doc = include_str!("../README.md")]
5+
// disable warning for already-stabilized features.
6+
// Needed to pass CI, because we deny warnings.
7+
// We don't immediately remove them to not immediately break older nightlies.
8+
// When all features are stable, we'll remove them.
9+
#![cfg_attr(
10+
any(feature = "tokio-1", feature = "futures-03"),
11+
allow(stable_features)
12+
)]
313
#![cfg_attr(
414
any(feature = "tokio-1", feature = "futures-03"),
515
feature(async_fn_in_trait, impl_trait_projections)
616
)]
7-
#![warn(missing_docs)]
8-
#![doc = include_str!("../README.md")]
917

1018
#[cfg(feature = "std")]
1119
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]

embedded-io-async/CHANGELOG.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Unreleased
9+
10+
Add unreleased changes here
11+
12+
## 0.6.0 - 2023-10-02
13+
14+
- Prohibit `Write::write` implementations returning `Ok(0)` unless there is no
15+
data to write; consequently remove `WriteAllError`.
16+
Update the `&mut [u8]` impl to possibly return
17+
a new `SliceWriteError` if the slice is full instead of `Ok(0)`.
18+
- Add `WriteZero` variant to `ErrorKind` for implementations that previously
19+
may have returned `Ok(0)` to indicate no further data could be written.
20+
- `Write::write_all` now panics if the `write()` implementation returns `Ok(0)`.
21+
822
## 0.5.0 - 2023-08-06
923

10-
- First release
24+
- First release

embedded-io-async/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "embedded-io-async"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
description = "Async embedded IO traits"
66
repository = "https://github.com/rust-embedded/embedded-hal"
@@ -17,7 +17,7 @@ alloc = ["embedded-io/alloc"]
1717
defmt-03 = ["dep:defmt-03", "embedded-io/defmt-03"]
1818

1919
[dependencies]
20-
embedded-io = { version = "0.5", path = "../embedded-io" }
20+
embedded-io = { version = "0.6", path = "../embedded-io" }
2121
defmt-03 = { package = "defmt", version = "0.3", optional = true }
2222

2323
[package.metadata.docs.rs]

embedded-io-async/src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
#![feature(async_fn_in_trait, impl_trait_projections)]
21
#![cfg_attr(not(feature = "std"), no_std)]
32
#![cfg_attr(docsrs, feature(doc_cfg))]
43
#![warn(missing_docs)]
54
#![doc = include_str!("../README.md")]
5+
// disable warning for already-stabilized features.
6+
// Needed to pass CI, because we deny warnings.
7+
// We don't immediately remove them to not immediately break older nightlies.
8+
// When all features are stable, we'll remove them.
9+
#![allow(stable_features)]
10+
#![feature(async_fn_in_trait, impl_trait_projections)]
611

712
#[cfg(feature = "alloc")]
813
extern crate alloc;

embedded-io/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## Unreleased
8+
## 0.6.0 - 2023-10-02
99

1010
- Prohibit `Write::write` implementations returning `Ok(0)` unless there is no
1111
data to write; consequently remove `WriteAllError` and the `WriteAllError`

embedded-io/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "embedded-io"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
description = "Embedded IO traits"
66
repository = "https://github.com/rust-embedded/embedded-hal"

0 commit comments

Comments
 (0)