Skip to content

Add feature to implement embedded_io::Read/Write (Issue #3196)#3197

Open
mauzigoe wants to merge 1 commit intogoogle:mainfrom
mauzigoe:embedded-io
Open

Add feature to implement embedded_io::Read/Write (Issue #3196)#3197
mauzigoe wants to merge 1 commit intogoogle:mainfrom
mauzigoe:embedded-io

Conversation

@mauzigoe
Copy link
Copy Markdown

@mauzigoe mauzigoe commented Apr 4, 2026

Hello I opened an issue. To fix this issue I implemented a feature embedded_io which offers to read from/write to variables which implement embedded_io::Read/Write similar to feature std::io.

@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 4, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.81%. Comparing base (142c395) to head (56c86b5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3197      +/-   ##
==========================================
- Coverage   91.85%   91.81%   -0.05%     
==========================================
  Files          20       20              
  Lines        6067     6122      +55     
==========================================
+ Hits         5573     5621      +48     
- Misses        494      501       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mauzigoe mauzigoe marked this pull request as draft April 4, 2026 18:31
@mauzigoe mauzigoe force-pushed the embedded-io branch 2 times, most recently from f7463c6 to fe6edc8 Compare April 4, 2026 18:58
Interface traits 'embedded_io::Read/Write' similar to 'std::io'

To enable writing cleaner library interfaces for drivers,
which expect, for example, to read from an UART buffer,
'zerocopy::FromBytes/IntoBytes' is be able to interface trait
which implement 'embedded_io::Read/Write'.
The design and testing was strongly orientated towards 'std::io'.

Built with "+all" toolchain. Tested against "+stable" and "+msrv".

Fixed Issue google#3196
@mauzigoe mauzigoe marked this pull request as ready for review April 4, 2026 19:08
@mauzigoe
Copy link
Copy Markdown
Author

mauzigoe commented Apr 4, 2026

Commit ran through all checks

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