66 Commits

Author SHA1 Message Date
Martin Kröning
193c0ed917 docs(embedded-io): fix typo 2026-03-02 10:55:24 +01:00
Dario Nieuwenhuis
0562eee4ca
Merge pull request #711 from Conaclos/lint-adapter
io: use clippy to ensure that methods are forwarded in adapters
2025-10-08 13:01:41 +00:00
Anders429
316c8f1aea Propagate lower-level errors as sources. 2025-10-07 10:49:16 -06:00
Victorien Elvinger
2b721664a0
io: make clippy happy 2025-10-02 22:32:11 +02:00
Victorien Elvinger
202c88cdb8
io: reduce noise using module-level clippy deny 2025-10-02 22:30:07 +02:00
Victorien Elvinger
0539497eed
io: use clippy to ensure that methods are forwarded in adapters 2025-10-02 22:30:07 +02:00
Dario Nieuwenhuis
ed3297e54f Release embedded-io 0.7.1 2025-10-01 01:10:49 +02:00
Dario Nieuwenhuis
4949c740a2 io: remove Read/Write supertrait for ReadReady/WriteReady.
`ReadReady`/`WriteReady` are shared between blocking and async (the embedded-io-async
crate just reexports them) so they shouldn't have the blocking `Read`/`Write` as
supertraits.
2025-10-01 01:02:57 +02:00
chrysn
9123afb528 Release embedded-io{,*} 0.7
Contributes-To: https://github.com/rust-embedded/embedded-hal/issues/566
2025-09-30 20:32:34 +02:00
Dario Nieuwenhuis
cb4f7a47dc
Merge pull request #697 from hermit-os/io-vec_deque
feat(io): implement `Read`, `ReadReady`, `BufRead`, `Write`, and `WriteReady` for `VecDeque<u8>`
2025-09-30 14:47:26 +00:00
Colin Finck
33327288b7
Update embedded-io README for defmt feature and MSRV
As a preparation for the (hopefully) upcoming release. Looking forward to #679.
2025-09-23 13:03:31 +02:00
Dario Nieuwenhuis
ba020960db
Merge pull request #704 from Conaclos/slice_specialized_impls
[io] Specialize `read_exact` and `write_all` for slices and `Vec`
2025-09-16 09:47:05 +00:00
Victorien Elvinger
9bb5dea4fe
[io] Forward calls in Box adapters 2025-09-16 10:14:32 +02:00
Victorien Elvinger
43a1bbb578
[io] Add specialized read_exact and write_all for slices 2025-09-16 10:08:19 +02:00
Victorien Elvinger
83f17d49e9
io: forward calls in blanket impls 2025-09-10 13:23:58 +02:00
Oakchris1955
82e1c7ba59
fix: missing impls from and to std's io::ErrorKind for WriteZero 2025-09-08 14:37:18 +03:00
Martin Kröning
ad6a7d1849
feat: implement ReadRead, WriteReady for VecDeque<u8> 2025-09-04 12:21:14 +02:00
Martin Kröning
e72721f935
feat: implement Read, BufRead, and Write for VecDeque<u8> 2025-09-04 11:15:10 +02:00
Victorien Elvinger
9d3bcb9455
io: make ReadReady, io_async::BufRead, and WriteReady super traits 2025-08-31 16:51:13 +02:00
Dario Nieuwenhuis
1ffedc7028
Merge pull request #687 from Conaclos/seek-stream-len-and-seek-relative
io: add `Seek::seek_relative`
2025-08-27 14:05:02 +00:00
Victorien Elvinger
12e427f545
io: BufRead super trait of Read 2025-08-27 15:57:13 +02:00
Victorien Elvinger
dac86caf0e
io: add Seek::seek_relative 2025-08-26 22:58:11 +02:00
chrysn
727422e653 io: Remove redundant requirement on Debug
core::error::Error already depends on Debug, thus this is a compatible
simplification.
2025-08-19 13:36:27 +02:00
chrysn
1d69c2a5a2 io, io-async: Update defmt to 1.0, rename feature from "defmt_03" to "defmt"
Co-authored-by: Ralph Ursprung <39383228+rursprung@users.noreply.github.com>
2025-08-07 23:26:40 +02:00
chrysn
d02f6db110 io: Require core::error::Error for the Error trait 2025-08-03 10:11:39 +02:00
Robin Mueller
93de810a17
clippy fixes 2025-07-22 11:11:46 +02:00
Mathias Pius
bc736f2d9c
Impl ReadReady and WriteReady for u8 slices 2025-04-14 12:47:04 +02:00
Ralph Ursprung
91cf7e18bd
implement core::error::Error
this trait has been stabilised in Rust 1.81.0.

the existing custom `Error` types cannot be removed / replaced as that'd
be a breaking change. for the same reason it's not possible for them to
require `core::error::Error` being implemented.

however, we can already implement the new trait for all cases where the
custom trait has been implemented so far.

existing `std` feature-gated implementations of `std::error::Error` have
also been moved to `core::error::Error` and the feature gate removed.

this raises the MSRV to 1.81.0 for most crates, but based on the MSRV
policy this should not be an issue.
2024-09-09 16:22:35 +02:00
ivmarkov
d745418436 Address review feedback 2024-09-08 07:51:22 +00:00
ivmarkov
92dbaf2d03 Re-add an unintentionally removed paragraph 2024-08-24 11:49:00 +00:00
ivmarkov
45fcad0cd5
Update embedded-io/src/lib.rs
Co-authored-by: James Munns <james@onevariable.com>
2024-08-24 13:01:06 +03:00
ivmarkov
9b1e75480b Clarify Read trait blocking behavior 2024-08-24 07:32:28 +00:00
Dario Nieuwenhuis
f593acb2b0 Fixes for 1.80 clippy. 2024-07-26 12:11:00 +02:00
Dario Nieuwenhuis
c10ddaec5a
Merge pull request #490 from Sh3Rm4n/chore/rust-version
Use rust-version field
2023-11-28 19:18:30 +00:00
Yuri Astrakhan
a7eb603bc4 A few minor clippy nits
* semicolons
* doc links
* unused Error namespace
2023-11-25 00:03:26 -05:00
Scott Mabin
6990b070ca prepare v0.6.1 2023-10-22 17:26:13 +01:00
Fabian Viöl
7414e2129b Use rust-version field 2023-10-21 09:49:53 +02:00
Scott Mabin
b2c1c0de1d Make SliceWriteError publicly accessible 2023-10-18 14:05:41 +02:00
Dario Nieuwenhuis
e632f16169 Release embedded-io{,-async,-adapters} v0.6.0 2023-10-02 15:29:20 +02:00
Scott Mabin
21abf1d9a2 document write_fmt length trick for slice 2023-09-18 20:13:11 +01:00
Adam Greig
90e2c5e877
Clarify write() may only return Ok(0) if data is empty.
In other situations an error should be returned instead;
update ErrorKind to add this and update out slice_mut implementation
to use it.
2023-09-14 00:40:25 +01:00
Yuri Astrakhan
6db1764555 Cleanup Cargo features and optionals
* Make sure all optional dependencies are not exposed automatically, but rather explicit
2023-09-01 11:49:00 -04:00
Dario Nieuwenhuis
8480a33ee5
Merge pull request #495 from nyurik/clippy
A few clippy lint fixes
2023-09-01 11:32:56 +00:00
Dario Nieuwenhuis
81b70d3d65
Merge pull request #492 from nyurik/inline-fmt
Inline a few format args for readability
2023-09-01 11:31:12 +00:00
Yuri Astrakhan
0df21a83a2 Remove a few un-needed qualifiers for consistency
Some types are referenced inconsistently, so removing qualifiers to keep them uniform
2023-09-01 01:36:01 -04:00
Yuri Astrakhan
3005247c9b A few clippy lint fixes
* added `[must_use]`
* added a few semicolons
2023-09-01 00:03:36 -04:00
Yuri Astrakhan
10a7effe16 Inline a few format args for readability
This existed since 1.58, so safe for MSRV
2023-08-31 23:10:52 -04:00
Daniel Larsen
aa5e4754ea Fix typo in Changelog 2023-08-17 17:53:52 -03:00
Dario Nieuwenhuis
575cee3343 Release embedded-hal{,-async,-nb} v1.0.0-rc.1, embedded-hal-bus v0.1.0-rc.1 2023-08-15 21:11:14 +02:00
Dario Nieuwenhuis
6ea5659bab io: Release embedded-io 0.5 2023-08-06 15:41:18 +02:00