Skip to content

Conversation

MabezDev
Copy link
Member

Currently depends on changes from #472.

I don't think the move of to_std_error to embedded-io will cause any stabilization concerns, it seems unlikely that that signature would change. If it is, I can make this hidden within embedded-io and we can duplicate the function for the adapters crate.

Dirbaio added 6 commits July 15, 2023 16:04
If we want to release `embedded-io` 1.0 and the adapters live there, we can't make any
breaking changes to them after release. Putting them in a separate crate
allows doing breaking changes without breaking everyone using the IO traits.
Needed for namespaced features (`dep:` in Cargo.toml)
@MabezDev MabezDev requested a review from a team as a code owner July 15, 2023 14:51
@MabezDev MabezDev force-pushed the missing-std-io-error-impls branch 3 times, most recently from fd19c0b to 42a3f94 Compare July 15, 2023 14:57
@Dirbaio
Copy link
Member

Dirbaio commented Jul 15, 2023

with the From impls I added, to_std_error becomes 1 line: std::io::Error::new(err.kind().into(), format!("{:?}", err)) . (I should've done that change lol)

With that I think it's less critical to share it, I'd rather not expose it as public API.

@MabezDev MabezDev force-pushed the missing-std-io-error-impls branch 4 times, most recently from 9bb047a to 9813946 Compare July 15, 2023 15:44
- Add `ReadExactError` for `std::io::Error`
- Add `WriteAllError` for `std::io::Error`
@MabezDev MabezDev force-pushed the missing-std-io-error-impls branch from 9813946 to 39d500d Compare July 15, 2023 15:46
@MabezDev
Copy link
Member Author

Ah, good point! Changed :).

@Dirbaio
Copy link
Member

Dirbaio commented Jul 15, 2023

Incorporated into #472. Thank you! :)

@Dirbaio Dirbaio closed this Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants