Commit Graph

33 Commits

Author SHA1 Message Date
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
Dario Nieuwenhuis
35b0dc3398 io: add defmt support. 2023-08-06 15:41:18 +02:00
Scott Mabin
332d0cea4d Missing ReadExact & WriteAll error impls for std
- Add `ReadExactError` for `std::io::Error`
- Add `WriteAllError` for `std::io::Error`
2023-07-15 18:17:05 +02:00
Dario Nieuwenhuis
7d975f025d Bump MSRV to 1.60
Needed for namespaced features (`dep:` in Cargo.toml)
2023-07-15 16:04:24 +02:00
Dario Nieuwenhuis
f04beb5e02 io: remove adapters from main crate. 2023-07-15 16:04:24 +02:00
Dario Nieuwenhuis
3a4814f33a io: Add From impls to convert between ErrorKind and std::io::ErrorKind. 2023-07-15 16:04:24 +02:00
Dario Nieuwenhuis
3f4c8d9575 io: remove useless crate::. 2023-07-15 16:04:24 +02:00
Diego Barrios Romero
27be7bc8a3 Merge pull request #469 from rust-embedded/io-docs
io: expand docs.
2023-07-12 16:01:45 +00:00
Dario Nieuwenhuis
b55faf9906 io: expand docs. 2023-07-12 17:42:41 +02:00
Dario Nieuwenhuis
e37cb225b5 io: add error kinds from std. 2023-07-12 17:42:33 +02:00
Dario Nieuwenhuis
7aaa585c63 Rename trait Io to ErrorType. 2023-07-12 13:26:23 +02:00
Dario Nieuwenhuis
e36386845c Apply suggestions from code review
Co-authored-by: Diego Barrios Romero <eldruin@gmail.com>
2023-07-12 13:25:39 +02:00
Dario Nieuwenhuis
31b62d3a07 io: add ReadReady, WriteReady. 2023-07-05 00:19:25 +02:00
Dario Nieuwenhuis
1b5a858b12 io: add adapters to/from std::io. 2023-07-04 22:32:39 +02:00
Dario Nieuwenhuis
eb6e078b26 io: add std/alloc features, add Box/Vec impls. 2023-07-04 22:31:46 +02:00
Dario Nieuwenhuis
6eb30c50d1 io: add impls for slices. 2023-07-04 22:27:59 +02:00
Dario Nieuwenhuis
6e27094671 Add embedded-io. 2023-07-04 22:25:50 +02:00